[Scummvm-git-logs] scummvm master -> f08bde265b76cfa9fdfb70625e1302f27fdc97b2

sev- noreply at scummvm.org
Fri Jul 11 16:28:04 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
f08bde265b DEVTOOLS: COMPANION: Fix timestamps when dumping ISO


Commit: f08bde265b76cfa9fdfb70625e1302f27fdc97b2
    https://github.com/scummvm/scummvm/commit/f08bde265b76cfa9fdfb70625e1302f27fdc97b2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-07-11T18:27:32+02:00

Commit Message:
DEVTOOLS: COMPANION: Fix timestamps when dumping ISO

Changed paths:
    devtools/dumper-companion.py


diff --git a/devtools/dumper-companion.py b/devtools/dumper-companion.py
index fe73d6b525d..d7b7f52e3f9 100755
--- a/devtools/dumper-companion.py
+++ b/devtools/dumper-companion.py
@@ -26,7 +26,7 @@ import unicodedata
 import urllib.request
 import zipfile
 from binascii import crc_hqx
-from datetime import datetime, timezone
+from datetime import datetime, timezone, timedelta
 from enum import Enum
 from io import BytesIO, IOBase, StringIO
 from pathlib import Path
@@ -593,7 +593,7 @@ def extract_volume_iso(args: argparse.Namespace) -> None:
 
                 rec = iso.get_record(**arg).date
                 stamp = datetime(rec.years_since_1900 + 1900, rec.month, rec.day_of_month,
-                                 (24 + rec.hour - rec.gmtoffset) % 24, rec.minute, rec.second, tzinfo=timezone.utc).timestamp()
+                                 rec.hour, rec.minute, rec.second, tzinfo=timezone.utc).timestamp() - timedelta(minutes=rec.gmtoffset * 15).total_seconds()
 
                 f.close()
 
@@ -619,7 +619,7 @@ def extract_volume_iso(args: argparse.Namespace) -> None:
                 arg[path_type] = os.path.join(dirname, dirorig)
                 rec = iso.get_record(**arg).date
                 stamp = datetime(rec.years_since_1900 + 1900, rec.month, rec.day_of_month,
-                                 (24 + rec.hour - rec.gmtoffset) % 24, rec.minute, rec.second, tzinfo=timezone.utc).timestamp()
+                                 rec.hour, rec.minute, rec.second, tzinfo=timezone.utc).timestamp() - timedelta(minutes=rec.gmtoffset * 15).total_seconds()
                 os.utime(joined_path, (stamp, stamp))
 
     iso.close()




More information about the Scummvm-git-logs mailing list