RimWorld

RimWorld

[KV] Save Storage, Outfit, Crafting, Drug, & Operation Settings [1.5/1.6]
Invalid date bug, minor time bug
The dates in the load menus appear to be messed up. It seems it's displaying as MM/DD/YYYY (Month/Day/Year).

It's also using 12-hour clock format, ignoring the preferences in the game's options.
< >
Showing 1-1 of 1 comments
firshpear  [developer] 29 Jul @ 6:44am 
it looks like working as intended. I checked the code and it uses `fi.LastWriteTime.ToString("g")`

by chatgpt:
```
In C#, when you call DateTime.ToString("g"), it uses the General Short format specifier.

This format combines the short date pattern (d format) and the short time pattern (t format), separated by a space.

The exact appearance depends on the current culture (or the culture associated with the DateTime object), but the typical format is:

yyyy-MM-dd HH:mm (24-hour clock) or M/d/yyyy h:mm tt (12-hour clock with AM/PM)

Here are some common examples:

en-US culture (default for many systems): 7/29/2025 9:42 PM
en-GB culture: 29/07/2025 21:42
de-DE culture: 29.07.2025 21:42
Key Points:

g stands for "General (short date and short time)".
It uses the short date pattern of the current culture.
It uses the short time pattern of the current culture.
The date and time are separated by a single space.
It does not include seconds or fractional seconds.
```
< >
Showing 1-1 of 1 comments
Per page: 1530 50