Set Timezone
-
How would I go about setting the timezone for the Rocket.Chat app? Anything I searched for suggested php.ini, but RC is via docker. I'm guessing the env file, but I'm not exactly sure how this should be formatted. RC doesn't have the ability to edit the timezone from within the app and uses the server timezone. Thanks.
-
@cleveradmin Per this comment, we can set the TZ environment variable. There is a
/app/data/env
file inside the rocket.chat app that is sourced on start up - https://docs.cloudron.io/apps/rocket.chat/#environment-variables . Can you try addingexport TZ=America/Brasilia
in the env file and restart the app to see if it helps? -
@cleveradmin maybe something else is needed. Can you tell me how I can test this myself? As in, how do I know if timezone setting is applied correctly or not inside rocket.chat ?
-
I have to say I cannot make out where a user can even set their timezone. I cannot find it in the user preferences page in our rocket.chat installation atleast.
-
@girish A user can't set the timezone, it pulls from the server. So the reason I came across this is setting business hours so that when we embed the live chat-functionality on our website, it doesn't show after business hours. I don't believe there is a way to show the set timezone. We just know it's not setting the timezone correctly because our live chat shows offline even though it's within the set business hours.
-
And just another note on this. I can't even work around this by setting the business hours in UTC because it doesn't allow going past midnight. So if I set a start time of 2PM and an end time of 2AM, it doesn't work at all.
-
@cleveradmin this kinda seems like an app bug rather than a Cloudron package bug. Generally the apps as such should run in UTC and then translate the time according to the current user to make sense without having everyone calculate the correct hours on their own.
-
@cleveradmin have you reached out to the upstream project in github about this?
-
@cleveradmin sure. https://git.cloudron.io/cloudron/rocketchat-app/ is the repo and https://git.cloudron.io/cloudron/rocketchat-app/-/blob/master/Dockerfile is the Dockerfile. If they want to test , they can also use the demo instance https://my.demo.cloudron.io (username: cloudron password: cloudron)