-
Notifications
You must be signed in to change notification settings - Fork 27
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
Timestamp for PersonImage #2413
Conversation
7f38c4d
to
7728dff
Compare
) | ||
modified = pi.modified | ||
response = self.app.get(f"/person/{person.id}", user=self.user) | ||
self.assertIn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BST problems? I tried this again with freeze_time
and also changed the migration update and created default to datetime.now(timezone.utc).isoformat()
but got the same error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this working now? CI seems ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think so - it's a mismatch in the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a commit that fixes this, but I'm a little confused as to why we're not getting the right timezone back from pi.modified
. In my understanding, the model should store the timezone and return local time, but maybe that's not how it works.
- Show the last updated timestamp for PersonImage - Test migration and template for PersonImage timestamps - Fix timezone
b1eaeab
to
057af63
Compare
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
This work
PersonImage
to aTimeStampedModel
PersonImage
instances.These changes will also lay the groundwork for a more straightforward approach to refactoring #2386