diff --git a/.gitignore b/.gitignore index c826493..ef9801c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ immich-go .vscode/launch.json .vscode/settings.json immich-go -main.go !readme.md diff --git a/main.go b/main.go index e10f646..954c3cd 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "fmt" "os" "os/signal" + "strings" "github.com/simulot/immich-go/cmdduplicate" "github.com/simulot/immich-go/cmdmetadata" @@ -94,6 +95,8 @@ func Run(ctx context.Context, log *logger.Log) (*logger.Log, error) { flag.StringVar(&app.TimeZone, "time-zone", "", "Override the system time zone") flag.Parse() + app.Server = strings.TrimSuffix(app.Server, "/") + _, err = tzone.SetLocal(app.TimeZone) if err != nil { return log, err