[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the documentation, with the integrated search.
[X] I already read the docs and didn't find an answer.
Homebox Version
0.10.3
What is the issue you are experiencing?
Same problem described in #837, but cannot replicate in the demo instance. The demo instance properly shows "just now" on newly created items, and the API shows the timestamp in UTC.
My instance:
I tried setting up the TZ docker variable to my timezone, America/Chicago, but the frontend still defaults to UTC time.
The only way the timezone is taken into account is when I add the following to volumes:
volumes:
- /etc/localtime:/etc/localtime:ro
But even then the frontend still shows "in 5 hours".
This is the API response for this location and it shows my time zone correctly:
Be in a time zone other than UTC, or host homebox on a VPS that's not in UTC.
Deployment
Docker (Linux)
Deployment Details
homebox:
container_name: homebox
restart: unless-stopped
ports:
- 127.0.0.1:3100:7745
environment:
# - TZ=America/Chicago # If both this and localtime volume is set, API uses UTC time zone.
- HBOX_OPTIONS_ALLOW_REGISTRATION=false
volumes:
- /root/docker-data/homebox/:/data
- /etc/localtime:/etc/localtime:ro # This sets the correct time zone for the API, only if TZ is not set.
image: ghcr.io/hay-kot/homebox:latest
First Check
Homebox Version
0.10.3
What is the issue you are experiencing?
Same problem described in #837, but cannot replicate in the demo instance. The demo instance properly shows "just now" on newly created items, and the API shows the timestamp in UTC.
My instance:
I tried setting up the
TZ
docker variable to my timezone,America/Chicago
, but the frontend still defaults to UTC time.The only way the timezone is taken into account is when I add the following to volumes:
But even then the frontend still shows "in 5 hours".
This is the API response for this location and it shows my time zone correctly:
How can the maintainer reproduce the issue?
Be in a time zone other than UTC, or host homebox on a VPS that's not in UTC.
Deployment
Docker (Linux)
Deployment Details