mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #25] [BUG] Wrong time written on backup file and in the Executions page #19
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpasovskiFilip on GitHub (Aug 10, 2024).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/25
It's not some feature breaking bug, but I just thought I'd report it, just in case.
First to clarify that the backup is executed at the desired time, there is no issue there.
The issue is that the time written on the backup file (both local and S3) and in the Executions page, doesn't match the time specified on the cron schedule according to the time zone I've set.
This is the setup I have for the backup with the cron and timezone it's set up at 5:20 AM

This is the executions page showing the backup time as 3:20 AM

And Here is the file on Cloudflare R2 storage with the time of 3:20 AM in the filename

P.S. Same goes for manual backup execution and local backup files.
Also I tried setting the TZ in the docker-compose file and redeploying, but it didn't change anything.
@julien-wff commented on GitHub (Aug 13, 2024):
Hi @SpasovskiFilip,
The name of the backup file is tied to the container's timezone. By default it's UTC. I just tested, setting the
TZenv variable does modify the file name.Can you give me your compose file? Also, are the logs on the same timezone as the one you specified?
@SpasovskiFilip commented on GitHub (Aug 13, 2024):
I think I might have made a mistake, unknowingly.
The issue is I had the timezone written as
TZ: Europe/Skopjeinstead of using quotes like you are using.After fixing this, the backup naming works great
The log also shows the correct time
The only place the time is still UTC is in the Executions page
@julien-wff commented on GitHub (Aug 13, 2024):
Happy to hear it's solved!
I've added a precision in #28, so people don't get confused.
Changing Execution page TZ will certainly be my next PR.
@julien-wff commented on GitHub (Aug 15, 2024):
This issue is resolved, it can be closed (@SpasovskiFilip, @eduardolat, since I don't have perms)