AMP-dockerized icon indicating copy to clipboard operation
AMP-dockerized copied to clipboard

TZ=Pacific/Auckland does not seem to work

Open itslukebtw opened this issue 2 years ago • 2 comments

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 avatar Jan 10 '23 05:01 itslukebtw

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.

itslukebtw avatar Jan 10 '23 19:01 itslukebtw

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.

IceOfWraith avatar Jul 18 '23 07:07 IceOfWraith