AWX API - timezone

Hello,

im already desperate about changing my AWX 20.0.0 (running in kubernetes) timezone.

All templates are static Europe/Prague.
For some maintenance jobs im using AWX api to obtain some relevant data ( like job start/finish/status etc.)
Im strugling with API timezone which is set UTC and therefore all my outputs are one hour moved.

In my #/api/v2/config i see:

“time_zone”: “UTC”

I already tryed to forceenv to pod like

env:

  • name: TIME_ZONE

value: Europe/Prague

or

tryed to add volume like:

- mountPath: /etc/timezone
name: awx-configmap-timezone
readOnly: true
subPath: timezone
- mountPath: /etc/localtime
name: awx-configmap-timezone
readOnly: true
subPath: timezone

with config map:

timezone: |
Europe/Prague

but AWX-web ignores any of these settings and date always return UTC time :

bash-5.1$ date
Sat Mar 5 12:49:21 PM UTC 2022

Is here anyone who can help if its somehow possible to edit /api/v2/config or somehow force pod to use different timezone…

Thank you in advance
Martin

UPDATE:
I managed to force all pod containers to use CET… but AWX-API still uses UTC

Dne sobota 5. března 2022 v 13:53:04 UTC+1 uživatel Martin Gabriel napsal:

for anyone interested,

define config map settings.py by adding:

USE_TZ = True
TIME_ZONE = 'CET'

API is now CET with correct time in my timezone

Dne sobota 5. března 2022 v 14:14:24 UTC+1 uživatel Martin Gabriel napsal: