[4.6.0.11] Gallery app shows incorrect time for pictures

REPRODUCIBILITY: 100% (so far)
OS VERSION: 4.6.0.11
HARDWARE: Xperia 10 II - Dual Sim
UI LANGUAGE: Finnish
REGRESSION: yes

DESCRIPTION:

Gallery app show incorrect time compared to the file name

PRECONDITIONS:

Take a photo with the built-in camera app

STEPS TO REPRODUCE:

  1. Take a photo with the built-in camera app
  2. Go into gallery, select the photo and press [i] on top-left
  3. The file name shows that the photo was taken fe. “20240521_163610.jpg”, but the date below shows 19:36, 21.5.2024 which is incorrect

EXPECTED RESULT:

Correct time to be shown (fe. 16:36 in the previous example)

ACTUAL RESULT:

Creation date is shown +3hours later than the actual creation time

MODIFICATIONS:

ADDITIONAL INFORMATION:

Tried rebooting the phone, didn’t help.

Another example with incorrect time between file name and the date-line below:

2 Likes

Same here on Xperia 10 II, in my case, timestamp is 2 hours ahead of FilePath time stamp.

I see this too on 4.6.0.11 / X10III. Time zone configuration on the device is Finland/Helsinki (automatic time and time zone update are enabled) and the date/time shown in Gallery app is 3 hours ahead of the actual capture time (which is correct in both the file name/timestamp and photo EXIF data within the jpg).

Same here. Gallery probably thinks the time is in UTC and does unnecessary timezone conversion.

2 Likes

That’s odd, since the Exif data contains a timezone.

Still happens in 4.6.0.12

Still here on Jolla C2 with 5.0.0.43

Might be the same issue as this:

On mine it is tied to daylight saving just to be more confusing…

1 Like

So is it using the file datetime or the exif data?

That’s a good experiment to make. Imo it should use exif if available, but i’m starting to suspect it isn’t.

Note that time is correctly displayed on old pictures taken with OS versions without the bug.

1 Like

It is the same on my xperia 10 II with t+01:00 (timezone Amsterdam winter time, time is off 1 hour).
Is the time parsed in javascript? The js date is notoriously weird to work with timezones (don’t ask me how I know :unamused:).