Browse Source

Tests passing on 2.6

Ask Solem 10 năm trước cách đây
mục cha
commit
1bf3103031
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/utils/timeutils.py

+ 1 - 1
celery/utils/timeutils.py

@@ -75,7 +75,7 @@ class LocalTimezone(tzinfo):
 
     def __repr__(self):
         return '<LocalTimezone: UTC{0:+03d}>'.format(
-            int(self.DSTOFFSET.total_seconds() / 3600),
+            int(timedelta_seconds(self.DSTOFFSET) / 3600),
         )
 
     def utcoffset(self, dt):