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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Dawarich
  3. Trying to change the TZ so that my area appears for "Today" rather than Berlin!

Trying to change the TZ so that my area appears for "Today" rather than Berlin!

Scheduled Pinned Locked Moved Dawarich
17 Posts 2 Posters 304 Views 2 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.
  • scookeS Offline
    scookeS Offline
    scooke
    wrote last edited by
    #1

    Hello, hope some coding guru can help me out here. My VPS is in Germany, and thus whenever I hit the "Today" button in Dawarich it brings me to Berlin. But, I would like a specific city in Canada to appear.

    I read https://forum.cloudron.io/topic/15088/how-to-use-the-rails-console and the last docs link to https://docs.cloudron.io/packages/dawarich/#rails-console, and from there went to the cli, to /app/code/ and entered app/code# export TIME_ZONE="America/Toronto", but nothing else happened to indicate it worked. I restarted the app, went to "Today" and I'm back in Berlin.

    A life lived in fear is a life half-lived

    1 Reply Last reply
    0
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @scooke
      Did you try to put that into the /app/data/env.sh file?

      export TIME_ZONE="America/Toronto"
      

      ?

      scookeS 1 Reply Last reply
      0
      • jamesJ james

        Hello @scooke
        Did you try to put that into the /app/data/env.sh file?

        export TIME_ZONE="America/Toronto"
        

        ?

        scookeS Offline
        scookeS Offline
        scooke
        wrote last edited by
        #3

        @james There is no such file there. I shall make one with those deets in it and see what happens.

        A life lived in fear is a life half-lived

        1 Reply Last reply
        0
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          Hello @scooke
          If there is no /app/data/env.sh that is strange.
          The app would generate that on every app restart.
          I just tried a fresh @dawarich installation and indeed the file is there.

          1 Reply Last reply
          0
          • scookeS Offline
            scookeS Offline
            scooke
            wrote last edited by
            #5

            Nope, it wasn't there until I made it, and now there is just export TIME_ZONE="America/Toronto" in it.

            A life lived in fear is a life half-lived

            1 Reply Last reply
            0
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote last edited by
              #6

              Hello @scooke
              Are you sure? Do you use a volume or anything for the @dawarich app?
              Because inside the /app/data/env.sh should also be the OTP_ENCRYPTION_PRIMARY_KEY, OTP_ENCRYPTION_DETERMINISTIC_KEY and OTP_ENCRYPTION_KEY_DERIVATION_SALT and if these are missing there should be all sorts of problems.
              So I can't really imagine the file missing completely and even after an app restart.

              1 Reply Last reply
              0
              • scookeS Offline
                scookeS Offline
                scooke
                wrote last edited by
                #7

                Under /app/code there are similar looking files, like .env.development, .env.template, .env.test, but even there, there isn't an actual .env.sh.

                But, yes, I am sure. There was no env.sh file, I had to make it, and thus there also aren't any of the other values you list. I suppose it is working. Do you want to go in a check?

                A life lived in fear is a life half-lived

                1 Reply Last reply
                0
                • jamesJ Offline
                  jamesJ Offline
                  james
                  Staff
                  wrote last edited by
                  #8

                  Hello @scooke
                  I have just installed @dawarich two times.
                  Once with Leave user management to the app and once with Allow all users on this Cloudron and both times the /app/data/env.sh was created correctly.
                  Can you tell me what version of the @dawarich app you are using?

                  1 Reply Last reply
                  0
                  • scookeS Offline
                    scookeS Offline
                    scooke
                    wrote last edited by
                    #9

                    The info in the app dashboard says it was installed 10 months ago, and no updates for custom apps. Its version is 0.1.0! So this was before Cloudron was offering it. I suppose that is the reason. I wonder if I should just move to the Cloudron version which is now at version Dawarich 1.12.2 - Package version 1.17.2. Thanks for pursuing this, it's helped me see that it was an older custom app.

                    A life lived in fear is a life half-lived

                    1 Reply Last reply
                    0
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by
                      #10

                      Hello @scooke
                      That explains it, glad we could find the issue.

                      1 Reply Last reply
                      0
                      • scookeS Offline
                        scookeS Offline
                        scooke
                        wrote last edited by
                        #11

                        ell, I'm back. After trying to enter in the TZ info, the app won't restart. I've removed the info from the env.sh file, and it still won't restart, and this is a recurring error message which seems unrelated:

                        Aug 19 12:22:01 2026-08-19T16:22:01Z 
                        Aug 19 12:22:01 Information for cause: Sprockets::Rails::Helper::AssetNotPrecompiledError (Asset `favicon/browserconfig.xml` was not declared to be precompiled in production.
                        Aug 19 12:22:01 Declare links to your assets in `app/assets/config/manifest.js`.
                        Aug 19 12:22:01 2026-08-19T16:22:01Z 
                        Aug 19 12:22:01 //= link favicon/browserconfig.xml
                        Aug 19 12:22:01 2026-08-19T16:22:01Z 
                        Aug 19 12:22:01 and restart your server):
                        Aug 19 12:22:01 2026-08-19T16:22:01Z 
                        Aug 19 12:22:01 app/views/application/_favicon.html.erb:8
                        Aug 19 12:22:01 app/views/layouts/application.html.erb:23
                        Aug 19 12:22:01 app/controllers/application_controller.rb:308:in 'ApplicationController#set_user_time_zone'
                        Aug 19 12:22:01 app/controllers/application_controller.rb:193:in 'ApplicationController#switch_locale'
                        

                        Any idea? I should have just stuck with what was working!

                        A life lived in fear is a life half-lived

                        1 Reply Last reply
                        0
                        • jamesJ Offline
                          jamesJ Offline
                          james
                          Staff
                          wrote last edited by
                          #12

                          Hello @scooke
                          What did you put into the /app/data/env.sh file?

                          1 Reply Last reply
                          0
                          • scookeS Offline
                            scookeS Offline
                            scooke
                            wrote last edited by
                            #13

                            I entered export TIME_ZONE="America/Toronto", and when the app didn't restart I tried export TIME_ZONE=America/Toronto, but that didn't restart either, and now with that line removed, it just won't restart, nor start after being stopped..

                            This is another error which repeats at the front end of starting up:

                            Aug 19 12:48:30 2026-08-19T16:48:30Z 
                            Aug 19 12:48:30 ActionView::Template::Error (Asset `favicon/browserconfig.xml` was not declared to be precompiled in production.
                            Aug 19 12:48:30 Declare links to your assets in `app/assets/config/manifest.js`.
                            Aug 19 12:48:30 2026-08-19T16:48:30Z 
                            Aug 19 12:48:30 //= link favicon/browserconfig.xml
                            Aug 19 12:48:30 2026-08-19T16:48:30Z 
                            Aug 19 12:48:30 and restart your server)
                            ```

                            A life lived in fear is a life half-lived

                            1 Reply Last reply
                            0
                            • jamesJ Offline
                              jamesJ Offline
                              james
                              Staff
                              wrote last edited by
                              #14

                              Hello @scooke
                              The error does not really look related to the timezone.
                              If you comment out that export line or delte it and restart the app, is the app working again?

                              1 Reply Last reply
                              0
                              • scookeS Offline
                                scookeS Offline
                                scooke
                                wrote last edited by
                                #15

                                Sorry, there must be something wrong with my writing, or I am not understanding your questions. I deleted the export line, as I explained in the previous reply. What is it about my post that makes you ask whether I deleted the line or not?

                                I deleted the line, as I said, and wondered if the last line needed a hard return or not, so I tried both (no new line, and a hard return) but no matter, it just doesn't start anymore. Why would editing the env.sh file have such an effect? Should I delete that env.sh file and let the app recreate it?

                                A life lived in fear is a life half-lived

                                1 Reply Last reply
                                0
                                • jamesJ Offline
                                  jamesJ Offline
                                  james
                                  Staff
                                  wrote last edited by
                                  #16

                                  Hello @scooke
                                  Sorry, I skipped the:

                                  @scooke said:

                                  and now with that line removed

                                  statement.

                                  I will try to reproduce this error.

                                  1 Reply Last reply
                                  0
                                  • jamesJ Offline
                                    jamesJ Offline
                                    james
                                    Staff
                                    wrote last edited by
                                    #17

                                    Hello @scooke
                                    I was not able to reproduce this issue.
                                    Can you try to put the app into recovery mode and starting it manually by running /app/pkg/start.sh from the web terminal?

                                    1 Reply Last reply
                                    0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    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