Closed katyo closed 2 years ago
Thanks for the report. Maybe we should be looking mid-string for /zoneinfo/
then rather than by prefix.
You can work around by setting the TZ environment variable to :Asia/Yekaterinburg
. On most shells, export TZ=:Asia/Yekaterinburg
will do.
@scottlamb I created PR which implements that idea.
When I trying to start server on NixOS it fails with the following error:
On a NixOS localtime symlink resolves to something like:
But as I see current solution simply strips some well-known prefixes: https://github.com/scottlamb/moonfire-nvr/blob/841e06e35458db1e40e16c72730cd2959cfdc5e6/server/src/cmds/run/mod.rs#L47-L48