Commit 391184585d2bec96e90e41d6f6c5122e066c16b5
1 parent
ff6ef809
Change parse_date -> parse
Because parse_date kills offset.
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -60,7 +60,7 @@ def get_current_tzdate(): | @@ -60,7 +60,7 @@ def get_current_tzdate(): | ||
60 | 60 | ||
61 | 61 | ||
62 | def add_minutes_to_date(date, minutes): | 62 | def add_minutes_to_date(date, minutes): |
63 | - return (parse_date(date) + timedelta(minutes=int(minutes))).isoformat() | 63 | + return (parse(date) + timedelta(minutes=float(minutes))).isoformat() |
64 | 64 | ||
65 | 65 | ||
66 | def get_file_contents(path): | 66 | def get_file_contents(path): |
Please
register
or
login
to post a comment