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

update create time when remote does not have one #183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

russelltg
Copy link

@russelltg russelltg commented Mar 12, 2024

I uploaded my takeout directly naively, so all the times were incorrect. I updated this tool to be able to detect when the local and remote file are the same, but the local timestamp is older then the remote one, which indicates that the local one is better because bad timestamps seem to always be newer than real ones as they are fabricated from when downloaded from google or when uploaded to immich

There were other bugs that needed fixing for this--OriginalFileName already had the extension, so I removed the + ext. Also, the updateAsset API seems to have been updated since you added it.

Interestingly, the timeline does not update correctly after this, but the metadata when you click on an image is correct. I assume this is an immich bug...

I uploaded my takeout directly naively, so all the times were incorrect. I updated this tool to be able to detect when the local and remote file are the same, but the local timestamp is *older* then the remote one, which indicates that the local one is better because bad timestamps seem to always be newer than real ones as they are fabricated from when downloaded from google or when uploaded to immich

There were other bugs that needed fixing for this--OriginalFileName already had the extension, so I removed the + ext. Also, the updateAsset API seems to have been updated since you added it.
@simulot
Copy link
Owner

simulot commented Mar 21, 2024

Thanks for your PR. I'll review it during the week end

@simulot
Copy link
Owner

simulot commented Mar 22, 2024

Before going further, have have checked if the problem wasn't created by time zone issues?
This is common that digital cameras doesn't set the time zone.
Another case: the phone store the date as UTC, and depending you time zone, the local time can be behind or ahead

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.

2 participants