Skip to content

Commit

Permalink
Update alert timestamp to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
poblabs committed Jan 1, 2019
1 parent 8b4af96 commit 76a8459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/user/belchertown.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def get_extension_list(self, timespan, db_lookup):
if forecast_alert_enabled == 1:
if "alerts" in data:
for alert in data['alerts']:
alert_expires = time.strftime('%B %d, %Y %-I:%M %p', time.localtime( alert['expires'] )) # December 27, 2018, 9:00 PM
alert_expires = time.strftime('%B %-d, %Y, %-I:%M %p', time.localtime( alert['expires'] )) # December 27, 2018, 9:00 PM
# Final alert string
forecast_alert_text += "<i class='fa fa-exclamation-triangle'></i> <a href='%s' target='_blank'>%s in effect until %s</a><br>" % ( alert['uri'], alert['title'], alert_expires )

Expand Down

0 comments on commit 76a8459

Please sign in to comment.