Skip to content

Commit

Permalink
fix(client): remove timezone parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Oct 20, 2014
1 parent 0c81025 commit f2a476d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/deis.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,8 @@ def readable_datetime(datetime_str):
Return a human-readable datetime string from an ECMA-262 (JavaScript)
datetime string.
"""
timezone = tz.tzlocal()
dt = parser.parse(datetime_str).astimezone(timezone)
now = datetime.now(timezone)
dt = parser.parse(datetime_str)
now = datetime.now()
delta = relativedelta.relativedelta(now, dt)
# if it happened today, say "2 hours and 1 minute ago"
if delta.days <= 1 and dt.day == now.day:
Expand Down

0 comments on commit f2a476d

Please sign in to comment.