-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tz: check all the python now()s #2807
Comments
|
To test:
|
postgresdbmigation._adapter_get_now_str is only used in databasemigration.substitute_variables. What it does is replace {NOW} with a current python now value. This logs a warning from now on and it is also documented now. |
KioskDatabaseIntegrity._get_functional_default_parameter needs thinking is used only in KioskDatabaseIntegrity. But it will indeed set all kinds of modified fields to the current utc-time stamp if they are null. That's still better than null and there isn't anything else I can do. |
I could find default(now) only for coordinates in default_dsd3.yml. That's good. It should be discouraged. Is it really needed for coordinates? New ticket: #2926 |
repl_events aka as dock & synchronization events are UTC due to default("now()") and I think that's fine. The only other thing I could thing about is translating them into the displaying user's time zone. But that can wait. |
anc2kioskimport: We take the timestamp for the modified field straight from the ANC database. Because we cannot know the time zone of that time stamp we treat it like any other legacy data from a former Kiosk version. |
First bullet point issue: #2935 |
bulk and sequence is something I need to do on Beset itself. That's next. |
What does summer vs winter time mean in this context? |
I am not sure myself. It was more a mental note that there is such a thing as daylight savings time and that there might be a scenario where the shift could lead to additional complications. But I can't point my finger at anything concrete there. |
One thing just happened: I prepared a workstation for myself a few days ago. I downloaded it today (we changed the clock over night) and it won't start because the UTC offset is now different. That is correct and even better than simply comparing time zone names which would let me start the app but all the transformed modified dates in the app would be an hour off. So this is good. Just noting it here. |
I close this. The last two (bulk and sequence) will be tested with #2924 |
they might rather need to be replaced with kioskdatetimelib.get_utc_now() .
The text was updated successfully, but these errors were encountered: