Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't consider timezone-aware fields specially #102

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

Terrance
Copy link
Contributor

@Terrance Terrance commented Feb 25, 2024

Currently, timestamp metadata fields later in the preferred field list can override earlier ones if the later one contains a timezone. This causes GPSDateTime to override DateTimeOriginal, though in practice the GPS timestamps only ever seem to use UTC (= Z) rather than any locale-aware timezones.

This excludes GPSDateTime from being preferred just because it has a timestamp (it'll still be used in the absence of other fields).

Fixes #99.

@SmilyOrg
Copy link
Owner

Some devices do add timezones to some fields, for example the Galaxy S8 has a TimeStamp field with a timezone. Could you add GPSDateTime as a third "ignore" condition next to FileModifyDate and FileCreateDate instead?

Currently, timestamp metadata fields later in the preferred field list
can override earlier ones if the later one contains a timezone.  This
causes `GPSDateTime` to override `DateTimeOriginal`, though in practice
the GPS timestamps only ever seem to use UTC (= `Z`) rather than any
locale-aware timezones.

This excludes `GPSDateTime` from being preferred just because it has a
timestamp (it'll still be used in the absence of other fields).

Fixes SmilyOrg#99.
@SmilyOrg SmilyOrg merged commit 1cca67b into SmilyOrg:main Feb 25, 2024
1 check passed
@Terrance Terrance deleted the date-field-order branch March 24, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefer DateTimeOriginal over GPSDateTime for created-at timestamp?
2 participants