Open NekoiNemo opened 8 months ago
Thanks for raising @NekoiNemo.
bug or a misconfiguration
Based upon what you've detailed, probably neither but instead a UX & consistency issue, and there's three things we should probably do:
The last point might be tricky, as I'm not sure we may specifically know the original timezone of a timestamp if the admin changes the configured timezone. I'd have to re-review how dates are stored and the interplay with timezone. Still might be better to just reflect the current configured timezone though since the otherwise worst case is maybe +/-24 hours of error, around the rare case someone changes their timezone.
Hi @ssddanbrown I don't know how much you have looked into the timestamp/timezone issue already. We do have a rare/special case regarding this: We are operating two ships sailing around the world and have BookStack installed on both of them. They will travel through many different time zones within a year and we try to have our different systems reflect the current time zone they are in. I haven't found a way to dynamically set the time zone in BookStack running in a docker container. Other applications are using the "host" (container) time zone and for these I was able to mount the host time zone files into the docker container. Maybe something like this would be possible for the last point above as well?
@bgartenmann You could create a script to update the timezone value used for BookStack based on system timezone, but that won't fully solve the scenario since (from what I remember) the setting applies to both storage and display and is not intended to be changed frequently. There's various different options to address things there, but I'd consider that outside the scope of this specific issue (which is specifically focused on presentation).
@ssddanbrown You are right that this is out of scope of this issue. Thanks for the tip with the script, I will look into that.
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
I have the following issues and can't seem to figure out if this is a bug or a misconfiguration:
Exact BookStack Version
v23.12.1
Log Content
No response
Hosting Environment
Docker container (from LSIO) behind NGINX
Host server is also in UTC (though it's locale isn't bound into containers)