Question - Timezone in .env #2017

Closed
opened 2026-02-05 02:31:49 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @joaomezzari on GitHub (Jan 6, 2021).

Hello,

I changed my timezone settings in the .env file, but I don't see it reflecting it in the application. I used the São Paulo timezone like that:
APP_TIMEZONE=America/Sao_Paulo

But, if I check the auditory log, for example, the time is not correct... I believe it's using UTC still. Any ideas?

Originally created by @joaomezzari on GitHub (Jan 6, 2021). Hello, I changed my timezone settings in the .env file, but I don't see it reflecting it in the application. I used the São Paulo timezone like that: APP_TIMEZONE=America/Sao_Paulo But, if I check the auditory log, for example, the time is not correct... I believe it's using UTC still. Any ideas?
Author
Owner

@ssddanbrown commented on GitHub (Jan 7, 2021):

Hi @joaomezzari,

From my testing, changing the APP_TIMEZONE won't alter existing date times but new saved data will saved for the configured timezone. Do you get the same result?

@ssddanbrown commented on GitHub (Jan 7, 2021): Hi @joaomezzari, From my testing, changing the `APP_TIMEZONE` won't alter existing date times but new saved data will saved for the configured timezone. Do you get the same result?
Author
Owner

@joaomezzari commented on GitHub (Jan 7, 2021):

Hey @ssddanbrown, my bad! The behaviour is exactly as you said.

@joaomezzari commented on GitHub (Jan 7, 2021): Hey @ssddanbrown, my bad! The behaviour is exactly as you said.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2017