mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 18:09:17 +01:00
correct year in _FAT_filetime_to_time_t
This commit is contained in:
parent
22f264e5fd
commit
36b712eb75
@ -99,7 +99,7 @@ time_t _FAT_filetime_to_time_t (uint16_t t, uint16_t d) {
|
|||||||
|
|
||||||
timeParts.tm_mday = d & 0x1F;
|
timeParts.tm_mday = d & 0x1F;
|
||||||
timeParts.tm_mon = ((d >> 5) & 0x0F) - 1;
|
timeParts.tm_mon = ((d >> 5) & 0x0F) - 1;
|
||||||
timeParts.tm_year = d >> 9;
|
timeParts.tm_year = (d >> 9) + 80;
|
||||||
|
|
||||||
timeParts.tm_isdst = 0;
|
timeParts.tm_isdst = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user