git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Config timezone to prevent chaos when DST/changing timezone
@ 2025-02-07 22:02 Devste Devste
  2025-02-07 22:47 ` brian m. carlson
  2025-02-08  9:28 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Devste Devste @ 2025-02-07 22:02 UTC (permalink / raw)
  To: git

Issue:
With DST or manual timezone changes (e.g. travelling) you can end up
with commits that are illogically sorted - newer commits have an
author/committer date that is older than older commits.

I found the discussion about user.hideTimezone
https://public-inbox.org/git/CAEOYnAQYMrNAe9s1V-0DVLdL-B_KpHMDP5e=yRnbCkMWdrvFHQ@mail.gmail.com/T/#u
and
https://git.github.io/rev_news/2023/08/31/edition-102/

While there are workarounds, these aren't possible in all cases (e.g.
"export TZ=UTC0" won't work with many IDEs since they run git in a
separate shell and has side-effects on non-git commands. Using
pre/post-commit/rewrite/merge hooks won't guarantee it's correct e.g.
if bypassing them if there checks in there that should be skipped)

There should be an easy way to force a specific timezone - or in
absence of that at least force UTC - to prevent this

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-08 21:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 22:02 Config timezone to prevent chaos when DST/changing timezone Devste Devste
2025-02-07 22:47 ` brian m. carlson
2025-02-08  9:28 ` Andreas Schwab
2025-02-08 21:54   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).