|
|
|
|
|
by PurpleRamen
1305 days ago
|
|
Generally a good Idea, but writing the location-names or even coordinates in the timestring seems like bloat and slightly unreliable as it does not documentate from which point in time and which culture the timestring originates. As it's necessary to use a database anyway, why not just put a timezone-id there? 2022-11-23T08:52:02!tz:423
Just have the rule to never change an entry in the database, only allow appending new entries. This way, you can be sure that different timezones for the same location/coordinates are always matching the correct timezone. Any recalculation can be maintained in the database with rules, if necessary. And you are even independent of language and political changes for a location.And you can even maintain multiple versions of the database, if neccessary. Just change !tz to !tz2, !tz3, etc. |
|
ID, well, it saves a tiny bit of space but honestly I don't think it is worth it if you're already storing info about timezone as text.
If you're storing it in binary form you can convert the name to DB entry on save/display