querylab / lazywarden

Automatic Bitwarden Backup
https://lazywarden.com
MIT License
650 stars 15 forks source link

Timezone #17

Open dernick79 opened 1 month ago

dernick79 commented 1 month ago

how do i set the correct time zone?

in my case it does not work like this:

Backup Settings

BACKUP_DIR=/root/lazywarden/backup-drive/ CRON_SCHEDULE="0 0 23 "

TIMESTAMP=18_09_2024_22_33_41

querylab commented 1 month ago

@dernick79 Greetings, did you change the timezone of the machine you are using with the timedatectl set-timezone Europe/Berlin command?

dernick79 commented 1 month ago

no i didnt. in unraid i set the timezone in the gui

10

in unraid, the time ist right. but in lazywarden the time are 2 hours earlier. Look at the backup file:

11 the zip file is 18_42_56 but the right time was 20_43

querylab commented 1 month ago

I've never worked with Unraid 🙃. I've noticed many people mentioning it, and someone in the community, @nwithan8, offered to work on integrating the program with Unraid. However, I personally haven't tried it and am not familiar with how it works yet 🤣

nwithan8 commented 1 month ago

Unraid automatically passes the timezone as a TZ variable into all Docker containers. However, this app uses TIMEZONE, so you have to set the timezone explicitly when setting up the application.

dernick79 commented 1 month ago

Unraid automatically passes the timezone as a TZ variable into all Docker containers. However, this app uses TIMEZONE, so you have to set the timezone explicitly when setting up the application.

yeah, thanks, but exactly this IS my problem. I dont know, how to setup explicitly the correct TIMEZONE.

in this case TIMEZONE=Germany/Berlin (UTC, +0200), it doesnt work, but what do i need? How should it look like. Europe/Berlin UTC +2, or UTC +0200 or with clamps... i dont know

nwithan8 commented 1 month ago

I would suspect it needs to be in an valid IANA format. Use the TZ Identifier name from this table: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. For you, it's probably just Europe/Berlin

dernick79 commented 1 month ago

I would suspect it needs to be in an valid IANA format. Use the TZ Identifier name from this table: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. For you, it's probably just Europe/Berlin

Thanks a lot. I will give it a try!

dernick79 commented 4 weeks ago

So it seems that I have to live with it. This change has not brought the desired success either.

20 21

wcypierre commented 1 week ago

@querylab TZ is pretty common so probably should change to that :D