Bug 477470 - File name timestamp formats
Summary: File name timestamp formats
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-TimeAdjust (show other bugs)
Version: 8.1.0
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-24 16:18 UTC by erik.lindsay
Modified: 2024-08-30 12:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description erik.lindsay 2023-11-24 16:18:01 UTC
Using the adjust date and time tool to pull the file name timestamp is very helpful, but it does not work with all date formats. I have some photos with the month written out that don't work with the tool. EX: November 23, 2016 at 1002PM
Comment 1 Maik Qualmann 2023-11-24 16:29:42 UTC
Text is not recognized, we would have to support all languages in the world. That's out of scope.

Maik
Comment 2 ratounade 2023-11-27 21:00:08 UTC
Hi, DigiKam is great but indeed, it is not clear how ."adjust time" with "File name timestamp" does work.
All my +50K photos are under file name "YYYYMMDD hhmmss BLABLA!WHATEVER"

DigiKam seems ok on 20190526 122104 IMG_1245 -> GOOD time stamp as it is 20190526 122104
but on does not work on 20190526 122104 P1160146 -> BAD time stamp as it is 20190526 160146

Quite surprising. And no way to find out your algorithm does work
Comment 3 ratounade 2023-11-27 21:01:08 UTC
As there is a french IT in the loop : spéciale dédicace bravo Gilles c'est du super super boulot, merci
Comment 4 Maik Qualmann 2023-11-28 05:29:25 UTC
Git commit 0baec12ad941bccfaae4a8ba4bc30089cf90599a by Maik Qualmann.
Committed on 28/11/2023 at 06:28.
Pushed by mqualmann into branch 'master'.

add “YYYYMMDD hhmmss” variant detection to the TimeAdjust tool

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

https://invent.kde.org/graphics/digikam/-/commit/0baec12ad941bccfaae4a8ba4bc30089cf90599a
Comment 5 ratounade 2023-12-01 12:32:09 UTC
thank you so much Maik and team
Let's wait for next version !
Comment 6 caulier.gilles 2023-12-01 12:34:03 UTC
Erik,

The 8.2.0 official bundles are already available for production (official announcement will be posted this week end). Look here :

https://download.kde.org/stable/digikam/8.2.0/

Please test and report

Gilles Caulier
Comment 7 ratounade 2023-12-01 15:43:14 UTC
Hi 
I just tested 8.2, on windows. Seems great.
In particular, I can confirm that files with format "YYYYMMDD HHmmss WHATEVERAFTER.XXX" can now be managed, using the great feature allowing to change dates in the metadatas of the photos.
Thank you so much again.

Not related to digiKam : answering to the initial question from Erik, about names "November 23, 2016 at 1002PM".
I strongly suggest first of all you align the naming of your photos and suggest the "Ant Renamer" free tool you can easily find on the web.
Ant Renamer can modify the names of multiple files with rules. As an example, it allows to change "November" to "11" in the files that selected. It allows to move X characters to the position Y allowing wou to move the 2016 at the beginning.
Then once you have homogeneous names such, you can use DigiKam and all its features
Best
Comment 8 Theliel 2024-08-27 13:47:10 UTC
Hi Gilles Caulier
I've been struggling for a while with the time format that digikam uses to extract dates. In my particular case, it's the use of blank spaces. Currently, I usually use exiftool to perform the massive change of dates, but I wanted to gradually migrate it to Digikam in this regard as well.

My problem is that when the date contains a space, it is not recognized as a valid format:

20240827 -> Works fine
2024-08-27 -> Works fine
2024_08_27 -> Works fine
2024 08 27 -> Does not recognize the format

Is it possible to expand the format recognition with the inclusion of blank spaces, or does this generate some potential problem?
Comment 9 Maik Qualmann 2024-08-27 18:58:28 UTC
Git commit a7f63e2cf9c61dbe46bd14b915b6175ea72ac5b6 by Maik Qualmann.
Committed on 27/08/2024 at 18:57.
Pushed by mqualmann into branch 'master'.

add date from file name if spaces are used as separator

M  +4    -4    core/libs/timeadjust/timeadjustcontainer.cpp

https://invent.kde.org/graphics/digikam/-/commit/a7f63e2cf9c61dbe46bd14b915b6175ea72ac5b6
Comment 10 Theliel 2024-08-30 12:09:42 UTC
Thank Gilles and team,

tested, and working fine :)