fgbbd
HOBBYOP
a year ago
This sounds like a joke, but i can't get the date right.
In my machine, shows the date correctly, but when running it on Railway, it just shows day before
I guess i could add one but that just seems incorrect. I'm sorry if this is a newbie problem but i just can't solve it.
madrid_tz = pytz.timezone('Europe/Madrid')
DATE = datetime.datetime.now(pytz.utc).astimezone(madrid_tz).strftime('%Y-%m-%d')
BACKUP_FILE = os.path.join(f"backup_{DATE}.sql")16 Replies
a year ago
where is that log being printed
a year ago
the timestamp on the left is a localized timestamp according to your browser
a year ago
what date is correct, you tell me haha
a year ago
then your timezone conversion is wrong in code
it works in my machine 🤣 🤣 okay i guess that isnt railway related then, ty for answering
a year ago
it's something mods / admins have to do
a year ago
!s
Status changed to Solved brody • about 1 year ago
