a different fix for [1296026]: just comment out the offending assert

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@557 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2008-05-17 08:52:33 +00:00
parent 03e02adeb4
commit a220bf3567

View File

@ -106,7 +106,8 @@ def calc_mac_epoch_diff():
"""
safe_epoch_t = (1972, 1, 1, 0, 0, 0, 0, 0, 0)
safe_epoch = time.mktime(safe_epoch_t) - time.timezone
assert time.gmtime(safe_epoch)[:6] == safe_epoch_t[:6]
# This assert fails in certain time zones, with certain daylight settings
#assert time.gmtime(safe_epoch)[:6] == safe_epoch_t[:6]
seconds1904to1972 = 60 * 60 * 24 * (365 * (1972-1904) + 17) # thanks, Laurence!
return long(safe_epoch - seconds1904to1972)