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
7 Posts 2 Posters 118 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

                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