Piwigo / Piwigo-Mobile

Piwigo iOS Mobile Application
MIT License
100 stars 29 forks source link

[BUG] Timezone issue #546

Closed pyRobShrk closed 1 year ago

pyRobShrk commented 1 year ago

I took a photo at 8:20 this morning and uploaded it to my Piwigo instance through the iOS app (3.0.1). The photo shows in the app with a timestamp of 1:20 AM. I'm in Pacific time, and my server is in the same time zone. My servers docker image was composed with:

environment:
  - TZ=America/Los_Angeles

My latest nginx access.log for the piwigo site shows a proper timestamp in the correct timezone:

[06/Jul/2023:10:46:50 -0700]

If I save the image from the app onto my phone, it has the proper timestamp. If I save the image to my PC, it has the proper timestamp. As far as I can tell this is just a display bug in the iOS app, that it's showing -7 hours from the correct timestamp. It's as if the app assumes the image timestamp on the photo is GMT and it's adjusting to display in Pacific time. I think this is a regression from the latest app version, as I never noticed this bug before.