mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-10 08:18:14 +03:00
Return correct year in File.GetTime
localtime returns year relative to 1900.
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ int File_GetTime(struct string *filename, struct page **page)
|
||||
return 0;
|
||||
}
|
||||
|
||||
date[0].i = tm->tm_year;
|
||||
date[0].i = tm->tm_year + 1900;
|
||||
date[1].i = tm->tm_mon;
|
||||
date[2].i = tm->tm_mday;
|
||||
date[3].i = tm->tm_hour;
|
||||
|
||||
Reference in New Issue
Block a user