correct year in _FAT_filetime_to_time_t

This commit is contained in:
Dave Murphy 2009-05-01 07:57:13 +00:00
parent 22f264e5fd
commit 36b712eb75

View File

@ -99,7 +99,7 @@ time_t _FAT_filetime_to_time_t (uint16_t t, uint16_t d) {
timeParts.tm_mday = d & 0x1F;
timeParts.tm_mon = ((d >> 5) & 0x0F) - 1;
timeParts.tm_year = d >> 9;
timeParts.tm_year = (d >> 9) + 80;
timeParts.tm_isdst = 0;