Question Exif times show up wrongly in Linux photo viewer

Red Squirrel

No Lifer
May 24, 2003
67,403
12,142
126
www.anyf.ca
Not sure if this is a camera issue or Linux issue, but I just noticed now that EXIF time shows up completely wrong. For example I just took a picture a while ago yet it's showing that it was taken past midnight. The time on the camera is set correctly.

I'm using Linux Mint 18 Cinnamon (I think) and using the default picture viewer.

I wanted to put the time stamp on some photos in a post and then realized the times are all out of whack. Like some of them are actually ok, but some arn't.
 

IronWing

No Lifer
Jul 20, 2001
69,052
26,935
136
Can you post a pic with the EXIF info intact? There are usually multiple timestamps on a file. It can help to figure out which one is the actual picture time.
 

Red Squirrel

No Lifer
May 24, 2003
67,403
12,142
126
www.anyf.ca
Here's one: https://www.uovalor.com/misc/DSC_9828.jpg

Exif info says it was 1:24am, but it was taken more around like 10-11ish. Not sure if it's my viewer causing this issue or if it's in the picture itself.

Never paid too much attention to specific times but was trying to get time stamp of eclipse as I was posting a couple different shots on FB and just putting the time stamp in the title and realized it was way off.

Which got me thinking, it would be nice if DSLRs had an option of putting the time stamp right on the picture like old cameras used to do, just a tiny text right in the corner would do. It's nice to have it built right into the image so in many years from now when you look at a picture you took you can tell the date without relying on some info that could easily be lost if the picture is converted or what not.
 

IronWing

No Lifer
Jul 20, 2001
69,052
26,935
136
Here is your complete EXIF info:
Code:
ExifTool Version Number         : 6.94
File Name                       : DSC_9828.jpg
Directory                       : .
File Size                       : 5 MB
File Modification Date/Time     : 2019:01:22 17:23:19 < ignore, this is the time I saved the file.
File Type                       : JPEG
MIME Type                       : image/jpeg
JFIF Version                    : 1.1
Subfile Type                    : Reduced-resolution image
Make                            : NIKON CORPORATION
Camera Model Name               : NIKON D7000
Orientation                     : Horizontal (normal)
X Resolution                    : 300
Y Resolution                    : 300
Resolution Unit                 : inches
Software                        : darktable 2.0.3
Modify Date                     : 2019:01:20 23:30:09
Reference Black White           : 0 255 0 255 0 255
Rating Percent                  : 100
Exposure Time                   : 1/800
F Number                        : 0.0
Exposure Program                : Manual
ISO                             : 800
Create Date                     : 2019:01:21 01:24:48
Exposure Compensation           : -5/3
Max Aperture Value              : 1.0
Metering Mode                   : Center-weighted average
Light Source                    : Unknown (0)
Flash                           : Off
Focal Length                    : 0.0mm
Maker Note Version              : 2.10
Quality                         : Raw
White Balance                   : Auto1
Focus Mode                      : Manual
Flash Setting                   : Normal
Flash Type                      :
White Balance Fine Tune         : 0 0
Color Balance 1                 : 1.90625 1.507812 1 1
Program Shift                   : 0
Exposure Difference             : -3.1
Compression                     : JPEG (old-style)
Preview Image Length            : 41296
Y Cb Cr Positioning             : Co-sited
Flash Exposure Compensation     : 0
ISO Setting                     : 800
Flash Exposure Bracket Value    : 0.0
Exposure Bracket Value          : 0
Crop Hi Speed                   : Off (4992x3280 cropped to 4992x3280 at pixel 0,0)
Serial Number                   : 5002511
Lens Type                       : MF
Lens                            : 0mm f/0
Flash Mode                      : Did Not Fire
Shooting Mode                   : Single-Frame
Auto Bracket Release            : Auto Release
Lens F Stops                    : 0.00
NEF Curve 1                     : (Binary data 578 bytes, use -b option to extract)
Noise Reduction                 : Off
NEF Curve 2                     : (Binary data 46 bytes, use -b option to extract)
Lens Data Unknown               : 02049V°G.,z.ÍÒ.“Oh~ñ¡Ž¸.äÂ.µŠœëw
Raw Image Center                : 2496 1640
Shutter Count                   : 52750
Vari Program                    :
Multi Exposure Version          : 0100
Multi Exposure Mode             : Off
Multi Exposure Shots            : 0
Multi Exposure Auto Gain        : Off
High ISO Noise Reduction        : Normal
Shot Info Version               : 0220
WB RGGB Levels                  : 488 386 256 230
Sub Sec Time                    : 70
Sub Sec Time Original           : 70
Sub Sec Time Digitized          : 70
Color Space                     : sRGB
Exif Image Width                : 2118
Exif Image Length               : 1797
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Scene Type                      : Directly photographed
CFA Pattern                     : [Red,Green][Green,Blue]
Custom Rendered                 : Normal
Exposure Mode                   : Manual
Digital Zoom Ratio              : 1
Focal Length In 35mm Format     : 0mm
Scene Capture Type              : Standard
Gain Control                    : Low gain up
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Unknown (0)
Date/Time Original              : 2019:01:21 01:24:48
TIFF-EP Standard ID             : 1 0 0 0
Rating                          : 5
Derived From                    : DSC_9828.NEF
Xmp version                     : 1
Raw params                      : 0
Auto presets applied            : 1
History end                     : 5
Mask id                         :
Mask type                       :
Mask name                       :
Mask version                    :
Mask                            :
Mask nb                         :
Mask src                        :
History modversion              : 5
History enabled                 : 1
History operation               : exposure
History params                  : 0000000000000000d924263f00004842000080c0
Blendop params                  : gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM=
Blendop version                 : 7
Multi priority                  : 0
Multi name                      :
Profile CMM Type                : lcms
Profile Version                 : 2.1.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2019:01:21 04:01:42
Profile File Signature          : acsp
Primary Platform                : Apple Computer Inc.
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             :
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : lcms
Profile ID                      : 0
Profile Description             : sRGB
Profile Copyright               : Public Domain
Media White Point               : 0.9642 1 0.82491
Chromatic Adaptation            : 1.04788 0.02292 -0.05022 0.02959 0.99048 -0.01707 -0.00925 0.01508 0.75168
Red Matrix Column               : 0.43604 0.22249 0.01392
Blue Matrix Column              : 0.14305 0.06061 0.71393
Green Matrix Column             : 0.38512 0.7169 0.09706
Red Tone Reproduction Curve     : (Binary data 8204 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 8204 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 8204 bytes, use -b option to extract)
Chromaticity Channels           : 3
Chromaticity Colorant           : Unknown (0)
Chromaticity Channel 1          : 0.64 0.33002
Chromaticity Channel 2          : 0.3 0.60001
Chromaticity Channel 3          : 0.15001 0.06
Device Mfg Desc                 : Darktable
Device Model Desc               : sRGB
Media Black Point               : 0 0 0
Image Width                     : 2118
Image Height                    : 1797
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
Blue Balance                    : 0.716511
Image Size                      : 2118x1797
Lens                            : 0mm f/0 MF
Red Balance                     : 1.520249
Shutter Speed                   : 1/800
Focal Length                    : 0.0mm
Date/Time Original              : 2019:01:21 01:24:48.70
Is the time zone set correctly on your camera?

Note the Modify Date is earlier than the Date/Time Original.

Edit: Also, this entry and the references to darktable suggest that you produced the jpg from a RAW file:
Derived From : DSC_9828.NEF
If this is true, at what time did you do this?
 
Last edited:

Red Squirrel

No Lifer
May 24, 2003
67,403
12,142
126
www.anyf.ca
Yeah time zone is set right, though I wonder if daylight savings time is an issue, I always forget which is which, are we on daylight savings time now or is that summer? I have it set to off. Not sure if that makes a difference though, does it? Like as long as the displayed time is correct then it should be ok? Though I never even thought of checking that before so it could very well be that I've taken pics before where it was an hour off. But as I saw here it's more than just one hour off.

But here's something odd I noticed. I just took a picture just now at 8:39pm. When I put the SD card in, within the file browser, it shows 3:39PM. It's WAY off, but off in the other direction. That may be a Linux specific issue too though.

And yeah the jpg is produced from the raw file. I just checked, and now it's the right time! And the jpg does take on the time the picture was taken and not the time it was saved, so that's good. I was playing around in the time settings to double check time zone though, and took the time to re-adjust the clock (was off by a few minutes) while I was in there so maybe that "refreshed" some stuff? So it does seem to be right now at least when I look in the picture viewer but it is way off when looking at file browser. I think that is a Linux issue though because I just checked my camcorder's SD card and it does the same thing... the time is behind. So that's another issue.

But yeah seems to really depend where I look at the time it's not the same everywhere. Thinking it's more a Linux issue with the way Linux does time maybe?
 

corkyg

Elite Member | Peripherals
Super Moderator
Mar 4, 2000
27,370
238
106
Seems to me that the issue is in the camera. That is where the EXIF is recorded. Can you try checking it on a different PC?
 

Red Squirrel

No Lifer
May 24, 2003
67,403
12,142
126
www.anyf.ca
The file browser view may very well be a Linux issue as I checked on my windows machine and the time shows up fine there. The exif is the same for both though. It seems to be fixed as far as I know unless there's some other factor at play that is causing the times to not always be consistent. But the ones I tested so far actually do show up at the right time in the Exif. Maybe when I played with the settings I did something. I'll keep a closer eye to see if anything changes over time.