Ticket #3053: django_weekday.patch

File django_weekday.patch, 566 bytes (added by Zoltan Arokszallasi <godri@…>, 18 years ago)
  • utils/tzinfo.py

    diff -ruN django.branch/utils/tzinfo.py django/utils/tzinfo.py
    old new  
    4646        return time.tzname[self._isdst(dt)]
    4747
    4848    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)
    5050        stamp = time.mktime(tt)
    5151        tt = time.localtime(stamp)
    5252        return tt.tm_isdst > 0
Back to Top