Vote #64108
完了Git Adapter date parsing ignores timezone
0%
説明
Git adapter uses Time.parse() on the date string, in the format @Sat Nov 8 02:20:44 2008 -0800@
TIme.parse() is unable to parse the timezone in the above date correctly:
in irb:
>> Time.parse("Sat Nov 8 02:20:44 2008 -0800") => Sat Nov 08 02:20:44 -0600 2008
The correct output should be the following (notice the placement of the year segment)
>> Time.parse("Sat Nov 8 2008 02:20:44 -0800") => Sat Nov 08 04:20:44 -0600 2008
This is causing a major issue with the repository to have incorrect times.
journals
I added @--date=iso@ option to git commands in r1995.
That should fix the date parsing problem. Can you confirm?
--------------------------------------------------------------------------------
You changed path to git in your commit.
Might want to change that back.
--------------------------------------------------------------------------------
Sorry, fixed. Can I close this ticket ?
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Sorry, fixed. Can I close this ticket ?
Yea, works great.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------