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

2 messages from 2023-03-13 to 2023-03-13. Participants: Yuri, Junio C Hamano.
Thread: https://gitlist.dev/t/59390

## Yuri, 2023-03-13 18:46

Subject: 'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on
Message-ID: <35a28f6c-5fe3-3007-63b2-bcfcdd10795a@tsoft.com>
URL: https://gitlist.dev/e/35a28f6c-5fe3-3007-63b2-bcfcdd10795a%40tsoft.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



```

## Junio C Hamano, 2023-03-13 19:17

Subject: Re: 'git commit --amend --no-edit --date {date}' sets wrong date when the summer daylight saving time is on
Message-ID: <xmqqttyotq9l.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqttyotq9l.fsf%40gitster.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?

> 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

```
