-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
Malformed Last Updated field #1490
Comments
I've teste with |
This is intended behavior, see this for the reasoning around it. |
Ok, but Eve set UTC time here, does not make sense to remove tzinfo |
Hmm, that's the oplog push code, and in a conditional branch only executed when the last update info not available. Furthermore, it's set at UTC precisely because all last_updates must be timezone-less (see my link above.) |
It was only an example code, here another example. |
A possible fix is - updates[config.LAST_UPDATED] = datetime.utcnow().replace(microsecond=0)
+ updates[config.LAST_UPDATED] = datetime.utcnow().replace(microsecond=0, tzinfo=timezone.utc) |
Feel free to submit a PR, I'll be happy to review it. |
Expected Behavior
I set
DATE_FORMAT
config with following valueWhen I get resource, the
_updated
field does not show timezoneActual Behavior
Result of get resource:
Fields on MongoDB
Environment
The text was updated successfully, but these errors were encountered: