Bug 436913 - File name timestamp not valid year 1892
Summary: File name timestamp not valid year 1892
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-TimeAdjust (other bugs)
Version First Reported In: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-11 09:24 UTC by HJ
Modified: 2021-05-11 10:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:


Attachments
File name timestamp not valid year 1892 (38.60 KB, image/png)
2021-05-11 09:24 UTC, HJ
Details
ATD DigiKam timestamp 1892 valid and working (37.63 KB, image/png)
2021-05-11 09:25 UTC, HJ
Details

Note You need to log in before you can comment on or make changes to this bug.
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