Bug 467601 - Add an optional time zone field to the renaming dialog to indicate the time zone to use for renaming
Summary: Add an optional time zone field to the renaming dialog to indicate the time z...
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (show other bugs)
Version: 8.0.0
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-20 10:53 UTC by mahikeulbody
Modified: 2023-03-21 13:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mahikeulbody 2023-03-20 10:53:24 UTC
PREAMBLE
Let say you make a quicktime video at t, in a country which time zone is tz with a device set to the local time.
According the type of the device (smartphone, digital camera, ...), time written into metadata (tmd) by the device will be :
1) tmd = t - tz ; no time zone metadata set
2) tmd = t - tz ; time zone metadata = UTC
3) tmd = t - tz ; time zone metadata = tz   # I don't know if there are devices doing that
4) tmd = t    # digital cameras which are not able to get by itself the current tz (or don't let you set the current tz)

DESIRED BEHAVIOR
I would like to rename the video with the local time of the shooting using, for example, [date:yyyy-MM-dd_hh'h'mm-ss] pattern regardless of the tz of the pc where digikam is running. It seems to be a logical use case.

CURRENT DIGIKAM RENAMING BEHAVIOR
Let say T is the time digikam will use to build the filename and pctz the current time zone of the computer where digikam is running.
For some devices such as android devices : T = tmd + time zone metadata if it exists (mdtz) + pctz
For others devices : T = tmd

So, if you make a video at 10:00:00 local time with an android device (which doesn't set mdtz or set mdtz = UTC) traveling in a country where time zone is UTC-5 and you want to rename the filename of the video when you come back to your country of residence which time zone is UTC+1, you will get a filename with 16:00:00 time, no 10:00:00. The only way to get it would be to modify the metadata time of the video to 09:00:00 (instead of 15:00:00) so that digikam produces the desired 10:00:00 time.

WISH
Add an optional time zone field to the renaming dialog to indicate the time zone to use for renaming (if empty, digikam would use pctz).
Comment 1 Maik Qualmann 2023-03-21 12:48:08 UTC
It's not entirely clear to me what exactly you want. Do you want to enter the time zone manually?
digiKam currently does not store a time zone offset. Current cameras save the time zone offset, the Exif tags are relatively new. We already have requests to support this. But I have never seen a time zone offset in videos, only the information whether UTC. It is true that Android devices usually save them in UTC.

Maik
Comment 2 mahikeulbody 2023-03-21 13:01:25 UTC
> digiKam currently does not store a time zone offset. 

There is a misunderstanding : I don't want store time zone offset into metadata.

WISH : Add an optional time zone field to the renaming dialog to indicate the time zone to use for renaming (if empty, digikam would use pctz).

It is about a dialog field to rename a file according to the TZ of shooting instead the TZ of the computer where Digikam is running, as described into the DESIRED BEHAVIOR part.