diff --git a/src/periph/fpga.cpp b/src/periph/fpga.cpp
index 0003a89a4425e6be29905f8a6f3dd881579f3cd4..e1377d4ff838da07b31c64fafb7967873f7ef1a1 100644
--- a/src/periph/fpga.cpp
+++ b/src/periph/fpga.cpp
@@ -977,7 +977,7 @@ bool Periph_fpga::read_firmware_version(TermOutput& termout, int format)
     if (retval == false) { return retval; }
     string revision = to_string(data[0]);
 
-    version = date.substr(0, 2) + "-" + date.substr(2, 2) + "-" + date.substr(4, 2)
+    version = date.substr(0, 4) + "-" + date.substr(4, 2) + "-" + date.substr(6, 2)
             + "T"
             + time.substr(0, 2) + "." + time.substr(2, 2) + "." + time.substr(4, 2)
             + "_"