Bug 436913

Summary: File name timestamp not valid year 1892
Product: [Applications] digikam Reporter: HJ <hannesjaagura>
Component: Plugin-Generic-TimeAdjustAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:
Attachments: File name timestamp not valid year 1892
ATD DigiKam timestamp 1892 valid and working

Description HJ 2021-05-11 09:24:15 UTC
Created attachment 138331 [details]
File name timestamp not valid year 1892

SUMMARY
The attached image has an error reading the timestamp - AdjustTimeDate.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT

digiKam timestamp with date 18920101T000000 is fully functional

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 HJ 2021-05-11 09:25:23 UTC
Created attachment 138332 [details]
ATD DigiKam timestamp 1892 valid and working
Comment 2 Maik Qualmann 2021-05-11 09:55:00 UTC
The automatic recognition of the correct date from the file name has limits. I'm looking at it, but I think it won't be able to break the recognition of other formats. Normally there are no such file names from electronic devices.

Maik
Comment 3 Maik Qualmann 2021-05-11 10:36:30 UTC
The current accepted date range is 1900-2100. I will extend it to 1800-2200. However, we will not activate an even larger area.

Maik
Comment 4 Maik Qualmann 2021-05-11 10:39:16 UTC
Git commit af7f9bb002831d1b263335d19f0c0fd736765c0a by Maik Qualmann.
Committed on 11/05/2021 at 10:38.
Pushed by mqualmann into branch 'master'.

extended date range when decode from file name
FIXED-IN: 7.3.0

M  +2    -2    NEWS
M  +2    -2    core/libs/timeadjust/timeadjustcontainer.cpp

https://invent.kde.org/graphics/digikam/commit/af7f9bb002831d1b263335d19f0c0fd736765c0a