You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I self host a QfieldCloud instance in a server in Germany. I set my environement variable to 'Europe/Berlin' UTC+2 on my env file.
I have a modification of a cloud file at 11h30 UTC that is correct according to my action and my local file last update is 11h00 UTC
When i would like to synchronise on qgis, it says that my local file is the last updated file instead of the cloud file.
To correct it, I have to specify that datetime timezone is UTC
cloud_updated_date=datetime.strptime(
project_file.updated_at, "%d.%m.%Y %H:%M:%S %Z"
)
# Create a timezone object for UTCutc_tz=pytz.timezone('UTC')
# Add the timezone information to the datetime objectcloud_updated_date=utc_tz.localize(cloud_updated_date)
cloud_updated_at=cloud_updated_date.timestamp()
I think that %Z is not taking into account with datetime.strptime in my case. Do you have any idea why ?
The text was updated successfully, but these errors were encountered:
QGIS (please complete the following information)
Describe the issue
I self host a QfieldCloud instance in a server in Germany. I set my environement variable to 'Europe/Berlin' UTC+2 on my env file.
I have a modification of a cloud file at 11h30 UTC that is correct according to my action and my local file last update is 11h00 UTC
When i would like to synchronise on qgis, it says that my local file is the last updated file instead of the cloud file.
I put some log message on add_file_checkbox_buttons function.
project_file.updated_at is correct with UTC timezone but
Give me a timestamp with 2 hours less
To correct it, I have to specify that datetime timezone is UTC
I think that %Z is not taking into account with datetime.strptime in my case. Do you have any idea why ?
The text was updated successfully, but these errors were encountered: