Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Unsolved Set Timezone

    Rocket.Chat
    3
    13
    813
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cleveradmin last edited by

      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.

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @cleveradmin last edited by

        @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 adding export TZ=America/Brasilia in the env file and restart the app to see if it helps?

        C 2 Replies Last reply Reply Quote 0
        • C
          cleveradmin @girish last edited by

          @girish That worked, thank you!

          1 Reply Last reply Reply Quote 1
          • C
            cleveradmin @girish last edited by

            @girish As it turns out, this didn’t work. It still acts like it’s UTC.

            girish 1 Reply Last reply Reply Quote 1
            • girish
              girish Staff @cleveradmin last edited by

              @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 ?

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                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.

                C 1 Reply Last reply Reply Quote 0
                • C
                  cleveradmin @girish last edited by

                  @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.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cleveradmin @cleveradmin last edited by

                    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.

                    nebulon 1 Reply Last reply Reply Quote 1
                    • nebulon
                      nebulon Staff @cleveradmin last edited by

                      @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.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        cleveradmin @nebulon last edited by

                        @nebulon I don't disagree, but unfortunately, it doesn't help my current situation.

                        nebulon 1 Reply Last reply Reply Quote 0
                        • nebulon
                          nebulon Staff @cleveradmin last edited by

                          @cleveradmin have you reached out to the upstream project in github about this?

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            cleveradmin @nebulon last edited by

                            @nebulon I'm chatting with Rocket.Chat via their own server. They've asked me to provide docker setup & version and docker config. Is there a way to get this information from Cloudron?

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @cleveradmin last edited by

                              @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)

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB