diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-29 09:56:56 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-29 09:56:56 (GMT) |
commit | cbdffcee6239740665625ae2e4ff8710a8784242 (patch) | |
tree | c2d0e8616cda69aca73cccfe3d854ba78828c17c /Lib/plat-mac/macfs.py | |
parent | ecb1104342af0e2dca191f7666c60d5ca65069a8 (diff) | |
download | cpython-cbdffcee6239740665625ae2e4ff8710a8784242.zip cpython-cbdffcee6239740665625ae2e4ff8710a8784242.tar.gz cpython-cbdffcee6239740665625ae2e4ff8710a8784242.tar.bz2 |
test_macfs found an error on the first day of its existence: round trips for date values to FSSpec.{Get,Set}Dates didn't work in MacPython-OS9. Fixed.
Diffstat (limited to 'Lib/plat-mac/macfs.py')
-rw-r--r-- | Lib/plat-mac/macfs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/plat-mac/macfs.py b/Lib/plat-mac/macfs.py index 56033f3..68abc2c 100644 --- a/Lib/plat-mac/macfs.py +++ b/Lib/plat-mac/macfs.py @@ -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 |