#!/bin/sh
# Every commit of ours is lowtide's and dated in UTC: a local offset in a
# commit says where its author lives. Git has no setting for the zone it
# dates in, only $TZ: Claude's sessions here run with TZ=UTC
# (.claude/settings.local.json), and this hook catches the rest by
# re-stamping the commit just made, same instant, +0000. Someone else's
# commit (a cherry-pick from upstream) keeps its author date; the
# committer date is ours, so it goes UTC too. Mid rebase or cherry-pick
# git refuses an amend: the hook says so, and .githooks/utc-restamp BASE
# fixes those afterwards. Enabled by `git config core.hooksPath
# .githooks`; the Monado fork and the website use this folder by its
# full path.
. "$(dirname "$0")/utc.sh"
utc_fix_head