summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/rp2/fatfs_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/rp2/fatfs_port.c b/ports/rp2/fatfs_port.c
index 3821d6586..9706b6fe7 100644
--- a/ports/rp2/fatfs_port.c
+++ b/ports/rp2/fatfs_port.c
@@ -30,5 +30,5 @@
MP_WEAK DWORD get_fattime(void) {
datetime_t t;
rtc_get_datetime(&t);
- 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);
}