プロジェクト

全般

プロフィール

Vote #64108

完了

Git Adapter date parsing ignores timezone

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2008/11/08
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
2
issue_org_id:
2149
author_id:
2638
assigned_to_id:
0
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0