Repository navigation
Conversation
- cw tz-audit (read-only): counts assets per time zone class (none, utc, offset, iana, dst-mismatch, iana-inconsistent) with top cameras, lists every distinct exifInfo.timeZone value with its asset count, --class listing, --ids-only for piping, --json. - cw tz-set: gives assets without any time zone the DST-correct offset of an IANA zone via updateAsset, keeping the wall-clock time; skips assets that already have a zone or no dateTimeOriginal, so reruns are no-ops. Immich v3.4 stores the result as a fixed offset (UTC+1/UTC+2). - Spec bumped to Immich v3.4.2: updateAsset/updateAssets are no longer deprecated; removed the documented exception and deprecation notes. - search metadata filter flags shared via searchFilterFlags/buildSearchFilter. - Embed time/tzdata so IANA zones resolve on Windows. - Unit tests plus a self-cleaning staging roundtrip test. Closes #45 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview binaries (commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #45
What
cw tz-audit(read-only): classifies every asset byexifInfo.timeZone—none,utc,offset,iana,dst-mismatch(needs--reference-zone),iana-inconsistent— with counts and top cameras per class, then lists every distinct time zone value with its asset count.--class NAMElists assets,-qprints IDs for piping,--jsonincludesclassesandtimeZones. Takes thesearch metadatafilter flags.cw tz-set --time-zone <IANA>: for assets with no time zone, computes the zone's DST-correct offset at each asset's wall-clock time and setsdateTimeOriginalwith that offset viaPUT /assets/{id}. The shown time stays the same. Assets that already have a zone or nodateTimeOriginalare skipped, so reruns are no-ops. Supports--dry-run,--yes(required for stdin IDs), and IDs, links or search filters.Notable finding
Immich v3.4.2 cannot persist an IANA name without GPS. After the sidecar write and metadata re-extraction, the stored zone is the fixed offset (
UTC+1/UTC+2). I verified this on staging; the help text and docs say so.Also
updateAsset/updateAssetsare no longer deprecated, so the AGENTS.md exception and the deprecation notes inassets update,fix-album-datesanddate-from-ocrare removed.searchFilterFlags/buildSearchFilter).time/tzdatais embedded so IANA zones resolve on Windows (about 450 KB larger binary).Tests
-tags integration): upload a JPEG with a naive date, run tz-set, checkUTC+2and the instant, then force-delete.--dry-run.🤖 Generated with Claude Code