From 7274750539f340a6fc574d15e92d3e453f7f9729 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Thu, 26 Apr 2018 18:05:26 -0700 Subject: [PATCH] fix error running process_queue in a tz with a negative offset --- eb_sqs/worker/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eb_sqs/worker/service.py b/eb_sqs/worker/service.py index 225c8b8..3282652 100644 --- a/eb_sqs/worker/service.py +++ b/eb_sqs/worker/service.py @@ -36,7 +36,7 @@ def process_queues(self, queue_names): queue_prefixes = [prefix.split(self._PREFIX_STR)[1] for prefix in prefixes] static_queues = queues - last_update_time = timezone.make_aware(datetime.min) + last_update_time = timezone.make_aware(datetime.min + timedelta(hours=24)) logger.debug('[django-eb-sqs] Connected to SQS: {}'.format(', '.join(queue_names)))