We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f331b5 commit f6b5424Copy full SHA for f6b5424
src/xenia/vfs/devices/stfs_xbox.h
@@ -24,7 +24,7 @@ inline uint64_t decode_fat_timestamp(const uint32_t date, const uint32_t time) {
24
struct tm tm = {0};
25
// 80 is the difference between 1980 (FAT) and 1900 (tm);
26
tm.tm_year = ((0xFE00 & date) >> 9) + 80;
27
- tm.tm_mon = ((0x01E0 & date) >> 5);
+ tm.tm_mon = ((0x01E0 & date) >> 5) - 1;
28
tm.tm_mday = (0x001F & date) >> 0;
29
tm.tm_hour = (0xF800 & time) >> 11;
30
tm.tm_min = (0x07E0 & time) >> 5;
0 commit comments