git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 13, 2023, 19:17 UTC
Message-ID
<xmqqttyotq9l.fsf@gitster.g>
In-Reply-To
<35a28f6c-5fe3-3007-63b2-bcfcdd10795a@tsoft.com>
Yuri <yuri@rawbw.com> writes:
> After the 'git commit --amend --no-edit --date "Mon 13 Mar 2023
> 6:00:00PST"' command 'git log' shows that the last commit was made at
> 07:00:00, not at 06:00:00.
PST vs PDT, perhaps?
Show 10 quoted lines
> This started happening only now after the switch to the summer
> daylight saving time was made a day ago.
>
>
> In both cases, when the time is set or read, the time correction
> should be applied equally.
>
>
>
> Yuri
Previous: Yuri
Message 2 of 2 in “'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on”
  1. YuriMar 13, 2023
  2. Junio C HamanoMar 13, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.