4

I have the following strange problem

λ git version
git version 2.18.0.windows.1

λ git config --global log.date iso8601

λ git commit --date=1970-01-01 -m "change"
fatal: invalid date format: @40769

λ git commit --date=1973-01-30 -m "change"
fatal: invalid date format: @97240598

λ git commit --date=1973-03-30 -m "change"
nothing added to commit but untracked files present

I was expecting to be able to run the command for anything after 1970-01-01.


Update after @Lasse question

λ git commit --date='1973-03-02' -m test1
fatal: invalid date format: @99945655

λ git commit --date='1973-03-03' -m test1
no changes added to commit

λ git commit --date='1973-03-02T00:00:00' -m test1
no changes added to commit

λ git commit --date='1973-03-03T00:00:00' -m test1
no changes added to commit

So it happens going from 1973-03-02 to 1973-03-03.

Tested with same results in: 2.11.0.windows.1 and 2.18.0.windows.1

raisercostin
  • 8,777
  • 5
  • 67
  • 76

0 Answers0