Mercurial > public > sg101
diff gcalendar/calendar.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | 4dc6a452afd3 |
children |
line wrap: on
line diff
--- a/gcalendar/calendar.py Mon Dec 14 20:42:20 2015 -0600 +++ b/gcalendar/calendar.py Tue Dec 15 21:01:07 2015 -0600 @@ -9,7 +9,7 @@ import httplib2 from apiclient.discovery import build from apiclient.http import BatchHttpRequest -from django.utils.tzinfo import FixedOffset +from django.utils.timezone import get_fixed_timezone from gcalendar.models import Event @@ -137,7 +137,7 @@ except pytz.UnknownTimeZoneError: raise CalendarError('Invalid time zone: %s' % tz_name) local = tz.localize(d) - zulu = local.astimezone(FixedOffset(0)) + zulu = local.astimezone(get_fixed_timezone(0)) s = zulu.strftime(self.DATE_TIME_TZ_FMT) return s