Repository navigation
fix(mobile): missing conversion to UTC time zone - #3495
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
@james58899 Hello, can you please put an example of the current behavior vs. the changes that you made to the description of this PR? |
|
I had a problem like #1320, the date of the image was changed to a future time after upload, and the time difference was exactly the timezone (Exactly 8 hours later, my timezone is UTC+8). |
This should be a different issue, this PR only fixes the incorrect file time when uploading on the mobile app. Because the screenshot does not have exif data, the file time will be used. |
jrasm91
left a comment
There was a problem hiding this comment.
I paused my metadata extraction job and then took an image and backed it up. It does have the wrong fileCreatedAt timestamp. We do indeed want to send ISO dates with the trailing Z, which this library doesn't do unless it is first converted to utc.
Because toIso8601String will lose the time zone information, if not converted to UTC the time will be incorrect.