]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - LinuxGUI/Ventoy2Disk/Core/ventoy_log.c
Add Linux native GUI program for Ventoy2Disk.
[Ventoy.git] / LinuxGUI / Ventoy2Disk / Core / ventoy_log.c
index 6e788c2f8e8ea77859ef5d317d76f36c6fd1d558..86bf0c7ace7dcb4010615cd558d67558c79f0c36 100644 (file)
@@ -133,7 +133,7 @@ void ventoy_syslog(int level, const char *Fmt, ...)
     if (fp)
     {
         fprintf(fp, "[%04u/%02u/%02u %02u:%02u:%02u] %s", 
-           ttm.tm_year, ttm.tm_mon, ttm.tm_mday,
+           ttm.tm_year + 1900, ttm.tm_mon, ttm.tm_mday,
            ttm.tm_hour, ttm.tm_min, ttm.tm_sec,
            log);
         fclose(fp);