Merge pull request #13 from rharke/renee-fix-date

Fix order of date bytes
This commit is contained in:
Bobbi Webber-Manners 2022-09-05 14:59:43 -04:00 committed by GitHub
commit 48641ea8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ def getDateTimeBytes():
word2 = 4096 * (t.tm_mon + 1) + t.tm_year
else:
# Legacy ProDOS <2.5
word1 = t.tm_mday + 32 * t.tm_mon + 512 * (t.tm_year - 2000)
word2 = t.tm_min + 256 * t.tm_hour
word1 = t.tm_min + 256 * t.tm_hour
word2 = t.tm_mday + 32 * t.tm_mon + 512 * (t.tm_year - 2000)
dt.append(word1 & 0xff)
dt.append((word1 & 0xff00) >> 8)
dt.append(word2 & 0xff)