I am running Rasa locally using Docker compose. The logs are showing time in UTC, but I want it to be in my local timezone. How to I change that?
Hi @filipedfs. You can include it as an env variable in your docker compose file. For example:
environment:
- TZ=Asia/Singapore
Thank you Juste. I tried that but I don’t know why it didn’t work. I solved my problem in a different way, but later I will return to this issue.
I meet same problem, can you sharing experience about “a different way”?
Sorry for the delay. I only saw your question now. I think the solution is not the best but for my purposes it was enough. I created a helper ‘get_current_datetime()’ and inside it I call datetime like this:
now: datetime = datetime.now(tz=pytz.timezone('America/Sao_Paulo'))