diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-02 15:40:00 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-02 15:40:00 -0500 |
| commit | cd7f59a62be1f411391623eb0d22648dd19a4e44 (patch) | |
| tree | 24ea42ba5ea33f495f3642084fec9a31a036c669 | |
| parent | 8649eea853afd4c41a384fa00ef76bccfdac4663 (diff) | |
| download | alftools-cd7f59a62be1f411391623eb0d22648dd19a4e44.tar.gz | |
unalf: Fix random off by one hour timestamps (uninitialized data, derp).
| -rw-r--r-- | src/extract.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extract.c b/src/extract.c index bb40056..ebd9a29 100644 --- a/src/extract.c +++ b/src/extract.c @@ -55,6 +55,7 @@ void set_datetime() { d = dpeek(alf_hdr_date0); + tm.tm_isdst = 0; tm.tm_sec = (t & 0x1f) << 1; tm.tm_hour = t >> 11; if(tm.tm_hour == 24) tm.tm_hour = 0; |
