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)}}