1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

month+1 for TimeLocal

This commit is contained in:
Brian Fiete 2024-01-04 06:33:13 -05:00
parent 10fdde56c5
commit 23729f8c0b

View file

@ -15052,7 +15052,7 @@ BfTypedValue BfModule::GetCompilerFieldValue(const StringImpl& str)
char result[32];
sprintf(result, "%d/%.2d/%.2d %.2d:%.2d:%.2d",
1900 + timeinfo->tm_year,
timeinfo->tm_mon,
timeinfo->tm_mon + 1,
timeinfo->tm_mday,
timeinfo->tm_hour,
timeinfo->tm_min,