Skip to content
Browse files

add comment about why we use PST

  • Loading branch information...
1 parent d0e5978 commit 81ff5b27c38c9ade5716ba3e68e4276b77ac4472 @lonnen lonnen committed Feb 21, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 socorro/cron/jobs/bugzilla.py
View
1 socorro/cron/jobs/bugzilla.py
@@ -57,6 +57,7 @@ def run(self, connection):
last_run = (datetime.datetime.now(tz.gettz('UTC')) -
datetime.timedelta(days=self.config.days_into_past))
+ # bugzilla runs on PST, so we need to communicate in its time zone
PST = tz.gettz('PST8PDT')
last_run_formatted = last_run.astimezone(PST).strftime('%Y-%m-%d')
query = self.config.query % last_run_formatted

0 comments on commit 81ff5b2

Please sign in to comment.
Something went wrong with that request. Please try again.