imiptools/dates.py | raw changeset files shortlog |
1.1 --- a/imiptools/dates.py Mon Sep 18 20:36:21 2017 +0200 1.2 +++ b/imiptools/dates.py Fri Oct 06 19:34:42 2017 +0200 1.3 @@ -453,8 +453,7 @@ 1.4 1.5 "Return the current time as an iCalendar-compatible string." 1.6 1.7 - offset = offset or timedelta(0) 1.8 - return format_datetime(to_timezone(datetime.utcnow(), "UTC") + offset) 1.9 + return format_datetime(get_time(offset)) 1.10 1.11 def get_date(offset=None): 1.12