Correcting PR #504, which made saved files’ filenames follow the UTC.
This commit modifies the way the filename is generated and makes it
follow the user’s local time.
The following commit changes the default name of files saved by the
user. Originally, any saved file was named
`<map name> <capitalized three letter english month>D HH-mm.<ext>`
Now filenames follow more closely ISO 8601 and are named by default
`<map name> YYYY-MM-DD-HH-mm.<ext>`.
The function also became much smaller and easier to read.
* Add the ability to regenerate cultures
- Added a button to the tools menu for regeneration.
- Regeneration button will handle initial generation of cultures and expansion afterwards.
- Pressing regenerate will warn the user.
- Small cleanup of trailing whitespace.
* Refreshing cultures editor updates culture centers
* Regenerating cultures refreshes the culture editor
* Added a function to refresh all open editors
* Reset burg and state cultures after regeneration
* Address the problem of potential data loss
Any errors while iterating the states or burgs could potentially lose the index 0 metadata stored in the arrays. This will instead track the index and ignore the 0th result.
* Religions update cultures on culture regeneration
Updated function names to be more similar and more descriptive
Correcting PR #504, which made saved files’ filenames follow the UTC.
This commit modifies the way the filename is generated and makes it
follow the user’s local time.
The following commit changes the default name of files saved by the
user. Originally, any saved file was named
`<map name> <capitalized three letter english month>D HH-mm.<ext>`
Now filenames follow more closely ISO 8601 and are named by default
`<map name> YYYY-MM-DD-HH-mm.<ext>`.
The function also became much smaller and easier to read.
* Add the ability to regenerate cultures
- Added a button to the tools menu for regeneration.
- Regeneration button will handle initial generation of cultures and expansion afterwards.
- Pressing regenerate will warn the user.
- Small cleanup of trailing whitespace.
* Refreshing cultures editor updates culture centers
* Regenerating cultures refreshes the culture editor
* Added a function to refresh all open editors
* Reset burg and state cultures after regeneration
* Address the problem of potential data loss
Any errors while iterating the states or burgs could potentially lose the index 0 metadata stored in the arrays. This will instead track the index and ignore the 0th result.
* Religions update cultures on culture regeneration
Updated function names to be more similar and more descriptive