Closed martinhoyer closed 1 year ago
If possible could you pls mention where you see the difference b/n actual & expected result
- As the linked docs state it'll be stored in Server's TZ, I don't see any particular issue in using user's locale while making requests and it may be auto-converted to server tz.
I don't actually use pylero, or polarion for that matter...much, yet. If it's auto-converted - great. Is it?
Is it?
- I don't know for sure how the conversion happens, all I can say is, we didn't receive any bug reports around datetime mismatch afair.
ok, thank you @leelavg . If you're happy with how it is feel free to close this.
I'd say that if there is auto-conversion anyway, it might be better to use UTC always (see flake8 DTZ005 for example), but if it works :shrug:
datetime.datetime.now()
in any module.
pylero is currently doing naive
datetime.datetime.now()
withtzinfo=None
. Shouldn't the timezone be in sync with Polarion server timezone? Seems like it is currently dependent on the OS settings/location user runs pylero from.From what I see in the web UI of our polarion server, the time is displayed in UTC. In that case it could be fixed by
datetime.datetime.now(tz=datetime.timezone.utc)
. Or if timezone info would be variable, maybe something likePolarion docs state: