Ticket #3053: django_weekday.patch
File django_weekday.patch, 566 bytes (added by , 18 years ago) |
---|
-
utils/tzinfo.py
diff -ruN django.branch/utils/tzinfo.py django/utils/tzinfo.py
old new 46 46 return time.tzname[self._isdst(dt)] 47 47 48 48 def _isdst(self, dt): 49 tt = (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.weekday(), 0, -1)49 tt = (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, 0, 0, -1) 50 50 stamp = time.mktime(tt) 51 51 tt = time.localtime(stamp) 52 52 return tt.tm_isdst > 0