{"thread":{"id":"59390","subject":"'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on","startedAt":"2023-03-13T19:04:44Z","lastAt":"2023-03-13T19:18:01Z","messageCount":2,"participants":["Yuri","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"473469","messageId":"35a28f6c-5fe3-3007-63b2-bcfcdd10795a@tsoft.com","threadId":"59390","inReplyTo":null,"subject":"'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on","fromName":"Yuri","fromEmail":"yuri@rawbw.com","sentAt":"2023-03-13T18:46:57Z","receivedAt":"2023-03-13T19:04:44Z","isPatch":false,"sender":{"key":"yuri@rawbw.com","avatar":null},"body":"Hello git experts,\n\n\nAfter the 'git commit --amend --no-edit --date \"Mon 13 Mar 2023 \n6:00:00PST\"' command 'git log' shows that the last commit was made at \n07:00:00, not at 06:00:00.\n\n\nThis started happening only now after the switch to the summer daylight \nsaving time was made a day ago.\n\n\nIn both cases, when the time is set or read, the time correction should \nbe applied equally.\n\n\n\nYuri\n\n\n"},{"id":"473470","messageId":"xmqqttyotq9l.fsf@gitster.g","threadId":"59390","inReplyTo":"35a28f6c-5fe3-3007-63b2-bcfcdd10795a@tsoft.com","subject":"Re: 'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2023-03-13T19:17:26Z","receivedAt":"2023-03-13T19:18:01Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Yuri <yuri@rawbw.com> writes:\n\n> After the 'git commit --amend --no-edit --date \"Mon 13 Mar 2023\n> 6:00:00PST\"' command 'git log' shows that the last commit was made at\n> 07:00:00, not at 06:00:00.\n\nPST vs PDT, perhaps?\n\n> This started happening only now after the switch to the summer\n> daylight saving time was made a day ago.\n>\n>\n> In both cases, when the time is set or read, the time correction\n> should be applied equally.\n>\n>\n>\n> Yuri\n"}]}