Skip to content

Commit

Permalink
Fix timestamp generation for "yesterday" metars
Browse files Browse the repository at this point in the history
  • Loading branch information
joanpc committed Oct 31, 2016
1 parent 8168278 commit ba2c51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noaweather/metar.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def updateMetar(self, db, path):
INSBUF = cursor.arraysize

today_prefix = datetime.utcnow().strftime('%Y%m')
yesterday_prefix = (datetime.utcnow() - timedelta(days=-1)).strftime('%Y%m')
yesterday_prefix = (datetime.utcnow() + timedelta(days=-1)).strftime('%Y%m')

today = datetime.utcnow().strftime('%d')

Expand Down

0 comments on commit ba2c51d

Please sign in to comment.