12

I'm wondering: where does Lemmy UI get the timezone for the time stamp on posts?

We are using Lemmy in docker. Two of the five containers in the stack have tzdata, and all of them are set to UTC right now. But when I hover over a post's relative time stamp to get the precise time it was posted, I was surprised to see UTC -6.

I'm in UTC -6, and the host that the docker stack is running on is currently set to UTC -6.

Basically, I can go to all the trouble to set the env in docker-compose to set the correct time zone for the containers, but I'm wondering if I need to bother. Any feedback would be helpful as far as best practices for setting time zones to make posts have the right time stamp and for making logs readable.

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[-] dessalines@lemmy.ml 1 points 1 year ago

You should not have to tweak anything with docker. It by default uses the time and time zone of your host machine.

this post was submitted on 04 Aug 2023
12 points (100.0% liked)

Lemmy Support

4655 readers
9 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS