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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Rocket.Chat
  3. Set Timezone

Set Timezone

Scheduled Pinned Locked Moved Unsolved Rocket.Chat
13 Posts 3 Posters 2.8k Views 3 Watching
  • 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.
  • girishG girish

    @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 Offline
    C Offline
    cleveradmin
    wrote on last edited by
    #3

    @girish That worked, thank you!

    1 Reply Last reply
    1
    • girishG girish

      @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 Offline
      C Offline
      cleveradmin
      wrote on last edited by
      #4

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

      girishG 1 Reply Last reply
      1
      • C cleveradmin

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

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #5

        @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
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #6

          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
          0
          • girishG girish

            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 Offline
            C Offline
            cleveradmin
            wrote on last edited by
            #7

            @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
            0
            • C cleveradmin

              @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 Offline
              C Offline
              cleveradmin
              wrote on last edited by
              #8

              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.

              nebulonN 1 Reply Last reply
              1
              • C cleveradmin

                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.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #9

                @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
                0
                • nebulonN nebulon

                  @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 Offline
                  C Offline
                  cleveradmin
                  wrote on last edited by
                  #10

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

                  nebulonN 1 Reply Last reply
                  0
                  • C cleveradmin

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

                    nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #11

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

                    C 1 Reply Last reply
                    0
                    • nebulonN nebulon

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

                      C Offline
                      C Offline
                      cleveradmin
                      wrote on last edited by
                      #12

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

                      girishG 1 Reply Last reply
                      0
                      • C cleveradmin

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

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #13

                        @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
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search