@@ -1784,14 +1784,14 @@ def test_writestr_extended_local_header_issue1202(self):
1784
1784
def test_write_with_source_date_epoch (self ):
1785
1785
with os_helper .EnvironmentVarGuard () as env :
1786
1786
# Set the SOURCE_DATE_EPOCH environment variable to a specific timestamp
1787
- env ['SOURCE_DATE_EPOCH' ] = "1727440508 "
1787
+ env ['SOURCE_DATE_EPOCH' ] = "1735715999 "
1788
1788
1789
1789
with zipfile .ZipFile (TESTFN , "w" ) as zf :
1790
1790
zf .writestr ("test_source_date_epoch.txt" , "Testing SOURCE_DATE_EPOCH" )
1791
1791
1792
1792
with zipfile .ZipFile (TESTFN , "r" ) as zf :
1793
1793
zip_info = zf .getinfo ("test_source_date_epoch.txt" )
1794
- get_time = time .gmtime (int (os .environ ['SOURCE_DATE_EPOCH' ]))[:6 ]
1794
+ get_time = time .localtime (int (os .environ ['SOURCE_DATE_EPOCH' ]))[:6 ]
1795
1795
# Compare each element of the date_time tuple
1796
1796
# Allow for a 1-second difference
1797
1797
for z_time , g_time in zip (zip_info .date_time , get_time ):
@@ -1806,7 +1806,7 @@ def test_write_without_source_date_epoch(self):
1806
1806
1807
1807
with zipfile .ZipFile (TESTFN , "r" ) as zf :
1808
1808
zip_info = zf .getinfo ("test_no_source_date_epoch.txt" )
1809
- current_time = time .gmtime ()[:6 ]
1809
+ current_time = time .localtime ()[:6 ]
1810
1810
for z_time , c_time in zip (zip_info .date_time , current_time ):
1811
1811
self .assertAlmostEqual (z_time , c_time , delta = 1 )
1812
1812
0 commit comments