Skip to content
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

Wrong result when updateing already existing items with timezone naive values. #164

Open
petschki opened this issue Dec 16, 2022 · 0 comments

Comments

@petschki
Copy link
Member

Scenario

I have a JSON export with Events. The start and end values do not have a timezone info.

Frist import

The event is created with the correct (=same) start/end values as in the JSON export. ✅

Second import

Importing the same JSON the second time with the setting Update existing item does the following:

  • DatetimeFieldDeserializer checks for existing value and its timezone (which is set on the first import)
  • the timezone naive JSON value is assumed as UTC and gets converted to the current timezone. In my case +01:00 and all the events have a wrong time value plus 1h.

I'm not sure if this is a plone.restapi bug or if it should be handled here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant