[KPhotoAlbum] Fwd: (file)Re: Date disappearing from database for certain photos in 5.4.2 and 6.2.1 (though not a problem in 4.7.1)

Harald Barth haba+kphotoalbum at kth.se
Mon Jul 13 21:51:42 BST 2020

> When switching from "normal" time to Daylight Saving Time (DST), the
> time jumps from 1:59:59 to 3:00:00. Image timestamps that fall into
> this leap hour are invalid.

Invalid is a bit harsh because the time in question is probably not
specified to be DST or not. Here where I am, up to 01:59:59 we have
for examle CET as a localtime until the switch is made. The minute
after we have 03:00:00 CEST as localtime. If one now encounters a time
that is 02:xx:yy on that date it is not invalid but it is just not
localtime. In this example it's proably UTC-1 (if you forget to adjust
your clock in the middle of the night it will run on UTC-1 in the
morning. The sun dial in my garden runs approximately UTC-1 all year
long as I don't adjust it (well I could, it has a center screw ;-)

> Robert then devised a workaround that would detect an invalid image date and 
> convert it to a correct timestamp (2:20 would become 3:20 in this example).

If you treat 2:20:00 as UTC-1 then it will indeed be 3:20:00 CEST so I think
this is a very reasonable fix (oh, sorry, many words to say that).


PS: I really, really hate the time switch every year.

More information about the Kphotoalbum mailing list