Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Switch time parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tombooth committed Sep 8, 2014
1 parent 6fb93cd commit 81a71f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backdrop/core/timeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def parse_time_as_utc(time_string):
if isinstance(time_string, datetime.datetime):
time = time_string
else:
time = parser.parse(time_string)
time = datetime.strptime(time_string, "%Y-%m-%dT%H:%M:%SZ")

return as_utc(time)

Expand Down

0 comments on commit 81a71f4

Please sign in to comment.