-
Notifications
You must be signed in to change notification settings - Fork 569
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
Timezone setting is not documented #286
Comments
I'm not using docker so I can't reproduce. Seems like some info for timezones is missing from the base image. This is happening in other docker linux images as well. See p.e. here: jfloff/alpine-python#50 It's not really a bug, just a warning. But as far as I understand it can be solved by adding/configuring tzdata to the base image. So we probably have to add the following in
Maybe I find some time to try this out this weekend. |
I install tzdata in my Docker image and then start the container with the TZ variable to get rid of this warning. IIRC it needs to know the time zone because it is required to calculate timestamps, presumably a dependency of the set-exif-datetime capability. |
Pull request #289 is already there. Thanks for confirming my research, @boredazfcuk ! |
fixed with #289 |
Thank you! |
F |
Overview
One of the examples in the Readme contains the timezone setting
-e TZ=America/Los_Angeles
but not reference how to use this setting.In my case, this lead to me not using the setting, which gave me the warning
/usr/lib/python3.8/site-packages/tzlocal/unix.py:158: UserWarning: Can not find any timezone configuration, defaulting to UTC. warnings.warn('Can not find any timezone configuration, defaulting to UTC.')
Steps to Reproduce
$ sudo docker pull icloudpd/icloudpd
docker run -it --rm --name icloud \ -v myPath:/data \ -v myPath/cookies:/cookies \ icloudpd/icloudpd:latest \ icloudpd --directory /data \ --cookie-directory /cookies \ --folder-structure {:%Y%m%d} \ --username [iCloud username] \ --password [iCloud Password] \ --size original \ --recent 3 \ --auto-delete
/usr/lib/python3.8/site-packages/tzlocal/unix.py:158: UserWarning: Can not find any timezone configuration, defaulting to UTC. warnings.warn('Can not find any timezone configuration, defaulting to UTC.')
Expected Behavior
Actual Behavior
See above
Context
Steps were taken on a Synology NAS via SSH from a Mac. The files seem to copy correctly. I can't verify if anything funky happened to the creation date and time of the photo.
The text was updated successfully, but these errors were encountered: