]> granicus.if.org Git - python/commitdiff
test_macfs found an error on the first day of its existence: round trips for date...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 29 Jan 2003 09:56:56 +0000 (09:56 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 29 Jan 2003 09:56:56 +0000 (09:56 +0000)
Lib/plat-mac/macfs.py

index 56033f319a938c15740449318265887c6fd6b923..68abc2c09bb72681f8a845958d7668ecf70c7a6b 100644 (file)
@@ -35,7 +35,11 @@ if time.gmtime(0)[0] == 1970:
                        t = t + 0x10000000L
                return (0, int(t), 0)
 else:
-       def _utc2time(utc): return utc[1]
+       def _utc2time(utc): 
+               t = utc[1]
+               if t < 0:
+                       t = t + 0x100000000L
+               return t
        def _time2utc(t):
                if t > 0x7fffffff:
                        t = t - 0x100000000L