Bug 452008 - Timestamp not updated when using File name timestamp
Summary: Timestamp not updated when using File name timestamp
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: BatchQueueManager-Core (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-28 16:22 UTC by Jan van Bekkum
Modified: 2022-03-29 14:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan van Bekkum 2022-03-28 16:22:38 UTC
SUMMARY
Timestamp not updated when using File name timestamp
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
I am trying to change the modified timestamp of a file named "VID_20210819_093309_00_426.mp4". I use the batch processor with Timestamp used = File name timestamp. I don't see any result. I also can't find documentation what the format of the filename should be for this feature to work.

STEPS TO REPRODUCE
1. Load file wit filename VID_20210819_093309_00_426.mp4 in batch processor;
2. Select in Control Panel Metadata | Time Adjust;
3. Select in Time Adjust screen Timestamp used = File name timestamp and Timestamp updated = File last modified
4. Execute batch

OBSERVED RESULT
File last modified timestamp not changed

EXPECTED RESULT
File last modified timestamp updated to date = 2021-08-19 and time = 09:33:09.00

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2022-03-28 16:38:43 UTC
I can not reproduce, works without problems. Note that you have to activate the "overwrite automatically" option under Behavior, otherwise a new file will be created to which the changes will be made.

Maik
Comment 2 Maik Qualmann 2022-03-28 16:59:50 UTC
Ok, that particular date format in the filename fails. Strange, since it's actually nothing special. I have a look at it.

Maik
Comment 3 Maik Qualmann 2022-03-28 17:12:52 UTC
Git commit bf35b7ca772555b9aceea67e338bcf4083f70ca5 by Maik Qualmann.
Committed on 28/03/2022 at 17:12.
Pushed by mqualmann into branch 'qt5-maintenance'.

add more supported date file names
FIXED-IN: 7.7.0

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

https://invent.kde.org/graphics/digikam/commit/bf35b7ca772555b9aceea67e338bcf4083f70ca5
Comment 4 Maik Qualmann 2022-03-29 05:57:22 UTC
A note: The Time Adjust Tool is also available as a standalone tool in the Item menu. It is more suitable for adjusting the time than in the BQM. In the standalone tool there is also a preview of the resulting timestamp.

Maik
Comment 5 Jan van Bekkum 2022-03-29 06:17:25 UTC
Hi Maik,

Thanks for the tip.

In the items menu the date of "VID_20210819_093309_00_426.mp4" is read correctly from the file name. However, the time is set to 00:00:00.
Comment 6 Maik Qualmann 2022-03-29 06:41:56 UTC
No, the date is not correct, check the year.

Maik
Comment 7 Jan van Bekkum 2022-03-29 07:25:47 UTC
What is wrong with it? I read it as 2021-08-19 09:33:09.00
Comment 8 Maik Qualmann 2022-03-29 10:30:02 UTC
This date file name format was still unknown for the function. When creating the function to decode date file names, we received a lot of samples from users. This format was not included. Now it is also recognized.

Maik
Comment 9 Jan van Bekkum 2022-03-29 14:02:39 UTC
"Now" means version 7.7.0?