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

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

From
YYuri <yuri@rawbw.com>
Date
Mar 13, 2023, 18:46 UTC
Message-ID
<35a28f6c-5fe3-3007-63b2-bcfcdd10795a@tsoft.com>
Hello git experts,

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.

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
Next: Junio C Hamano
Message 1 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.