-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support time zone information in the createdate attribute in the index #7
Comments
Note that photo-tools relies on PyYAML for reading and writing index files. PyYAML does not handle time zone aware datetime values correctly, see this Issue in PyYAML. |
An attempt to implement this has been started in the timezone branch. But it turns out that there are a couple of problems:
As a summary of all this, the problems seem to outweigh the benefits of this feature. I close as wontfix for the time being. |
Reopen:
The remaining issue to be solved is to retrieve the time zone information from the exif data. But this could also be solved providing the information in command line argiuments. |
Options to determine which time zone to set might include:
|
When the index is created by
photoidx create
, thecreatedate
attribute of the images is initialized fromget_date_time()
from the photo's exif data. But this yields a naivedatetime
object, without any time zone information. Should also try to get the time zone information from the exif data and set it increatedate
.However, I'm not sure if there is any standard exif field where this is stored. This might result in a vendor specific solution that only works for some camera models.
The text was updated successfully, but these errors were encountered: