https://bugs.kde.org/show_bug.cgi?id=523224

            Bug ID: 523224
           Summary: Title  Dolphin and Gwenview display EXIF
                    DateTimeOriginal with an incorrect +2 hours offset
                    when OffsetTimeOriginal is present
    Classification: Applications
           Product: gwenview
      Version First 23.08.5
       Reported In:
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 194425
  --> https://bugs.kde.org/attachment.cgi?id=194425&action=edit
Bug displayed in gwenview

When viewing JPEG or NEF images produced by a Nikon Z5, Dolphin and Gwenview
display the image capture time two hours ahead of the actual shooting time.

The image metadata itself is correct.

The problem only appears in KDE applications. Other software reads the metadata
correctly.

Environment

    Distribution: Ubuntu

    KDE Frameworks: 5.115.0

    Qt: 5.15.13
    Dolphin: 23.08.5
    Gwenview: 23.08.5

System time configuration:
Local time: Europe/Paris (CEST, UTC+02:00)
RTC in UTC: yes
timedatectl reports a correct timezone configuration.

Camera
Nikon Z5
The problem occurs with both:
    JPEG
    NEF (RAW)

Steps to reproduce
    Set the camera timezone to UTC+1 with Daylight Saving Time enabled.
    Take a picture at 09:09 local time.
    Copy the image to the computer.
    Open the image in Dolphin or Gwenview.

Expected result
The capture time should be displayed as:
09:09
Actual result
Dolphin and Gwenview display:
11:09
(two hours ahead)
Metadata verification
ExifTool reports:

[ExifIFD] Offset Time            : +02:00
[ExifIFD] Offset Time Original   : +02:00
[ExifIFD] Offset Time Digitized  : +02:00
[ExifIFD] Date/Time Original     : 2026:07:08 09:09:34

The metadata is therefore correct.

Cross-check
The same file is interpreted correctly by:
    ExifTool
    GIMP
    The camera itself (Nikon Z5)

Only Dolphin and Gwenview display the incorrect time (+2 hours).

This suggests that KDE metadata handling may be applying the timezone offset a
second time when OffsetTimeOriginal is present.

If needed, I can provide both the original JPEG and NEF files for testing.***

ADDITIONAL INFORMATION
$ exiftool -a -G1 -time:all  PGZ_5599.jpg
[System]        File Modification Date/Time     : 2026:07:08 11:09:34+02:00
[System]        File Access Date/Time           : 2026:07:12 21:47:06+02:00
[System]        File Inode Change Date/Time     : 2026:07:12 21:47:04+02:00
[IFD0]          Modify Date                     : 2026:07:08 09:09:34
[ExifIFD]       Date/Time Original              : 2026:07:08 09:09:34
[ExifIFD]       Create Date                     : 2026:07:08 09:09:34
[ExifIFD]       Offset Time                     : +02:00
[ExifIFD]       Offset Time Original            : +02:00
[ExifIFD]       Offset Time Digitized           : +02:00
[Nikon]         Time Zone                       : +01:00
[Nikon]         Daylight Savings                : Yes
[Nikon]         Date Display Format             : D/M/Y
[Nikon]         Power Up Time                   : 2026:06:26 17:31:38
[ExifIFD]       Sub Sec Time                    : 19
[ExifIFD]       Sub Sec Time Original           : 19
[ExifIFD]       Sub Sec Time Digitized          : 19
[XMP-xmp]       Create Date                     : 2026:07:08 09:09:34.19
[Composite]     Create Date                     : 2026:07:08 09:09:34.19+02:00
[Composite]     Date/Time Original              : 2026:07:08 09:09:34.19+02:00
[Composite]     Modify Date                     : 2026:07:08 09:09:34.19+02:00

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to