MitchTalmadge / AMP-dockerized

CubeCoders AMP in a Docker Image. Easily create game servers for games like Minecraft, GMod, TF2, Factorio, and StarBound!
https://hub.docker.com/r/mitchtalmadge/amp-dockerized
Other
91 stars 22 forks source link

TZ=Pacific/Auckland does not seem to work #146

Closed itslukebtw closed 3 days ago

itslukebtw commented 1 year ago

Hi, have just had a scheduled job go off that is set to run at 5:15am NZ time but has gone off at 6:15pm NZ. I have TZ=Pacific/Auckland set in the Docker compose

itslukebtw commented 1 year ago

Just restarted AMP to get timings. Looks like the scheduled jobs still run in UTC instead of NZDT

Copying AMP Core... Ensuring AMP user exists... Ensuring correct file permissions... Setting timezone from TZ env var... Current default time zone: 'Pacific/Auckland' Local time is now: Wed Jan 11 08:43:45 NZDT 2023. Universal Time is now: Tue Jan 10 19:43:45 UTC 2023.

IceOfWraith commented 1 year ago

This is a limitation within AMP itself. Mike plans to add localized scheduled tasks eventually, but this was changed to UTC for all to avoid bugs in the meantime.

MitchTalmadge commented 3 days ago

Re-open if I'm wrong, but this looks to be available now:

image