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

-time-zone parameter has no effect on path-based timestamps #636

Open
avargaskun opened this issue Jan 18, 2025 · 1 comment
Open

-time-zone parameter has no effect on path-based timestamps #636

avargaskun opened this issue Jan 18, 2025 · 1 comment

Comments

@avargaskun
Copy link

I have files with names in the format YYYY-MM-DD_hh-mm-ss.png and the format seems to be recognized by immich-go, however, regardless of the value I pass in the -time-zone parameter, the 'capture' date is always set to the parsed timestamp in UTC. Setting the timezone globally before calling the script does not have an effect either (e.g. TZ=America/Los_Angeles ./immich-go upload ...)

Took a peek at the code, it looks like UTC is always set as the timezone of the parsed timestamp:

t := time.Date(m[0], time.Month(m[1]), m[2], m[3], m[4], m[5], 0, time.UTC)

Wondering if the value of -time-zone should instead be passed through to the code parsing the timestamp from the filename and using it (if provided) instead?

@simulot
Copy link
Owner

simulot commented Jan 18, 2025

This is fixed in the release candidate versions:
https://github.com/simulot/immich-go/releases/tag/v0.23.0-RC8

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

No branches or pull requests

2 participants