[Solved] Setting the timezone doesn't work
Posted: Sun Feb 18, 2024 9:03 pm
Hello! Timezone setting is not working in Web Server settings.
Using the code below does not actually change the timezone to UTC, it remains CET +01:00 (in Lua codes) - I think this is due to the fact that the Wapka server is located in Germany:
I also reported a while ago that the System Configuration "Local Time (Timezone)" does not work either, as the timezone always remains in UTC - I tried changing it for example to "(UTC-03:00) America/Fortaleza" but it doesn't work.
Output examples:
Using the code below does not actually change the timezone to UTC, it remains CET +01:00 (in Lua codes) - I think this is due to the fact that the Wapka server is located in Germany:
Code: Select all
server.timezone(env.timezone or 'UTC');
Output examples:
Code: Select all
Datetime (Lua) 2024-02-18 22:00:21 +0100 CET os.date("%Y-%m-%d %H:%M:%S %z %Z")
Datetime (DATE() function) 2024-02-18 21:00:21 +0000 UTC {{DATE(Y-m-d H:i:s O e)}}