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 b25087f commit 92d9118Copy full SHA for 92d9118
ports/rp2/fatfs_port.c
@@ -30,5 +30,5 @@
30
MP_WEAK DWORD get_fattime(void) {
31
datetime_t t;
32
rtc_get_datetime(&t);
33
- return ((2000 + t.year - 1980) << 25) | ((t.month) << 21) | ((t.day) << 16) | ((t.hour) << 11) | ((t.min) << 5) | (t.sec / 2);
+ return ((t.year - 1980) << 25) | ((t.month) << 21) | ((t.day) << 16) | ((t.hour) << 11) | ((t.min) << 5) | (t.sec / 2);
34
}
0 commit comments