Project

General

Profile

Actions

Defect #6145

closed

Git commit dates not read properly

Added by Felix Schäfer over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2010-08-16
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

git log says: 2010-08-05 16:45:11 +0200,

The rails console says for that commit: committed_on: "2010-08-05 16:45:11" (Which IIRC should be UTC, so it's already wrong here),

When viewed in a browser in UTC+2, the repository tab says: 05.08.2010 18:45 (Which is in accordance to what is in the DB).

A solution that works for me is to add .utc to the 2 Time.parse() calls in the git adapter (source:/trunk/lib/redmine/scm/adapters/git_adapter.rb#L142 and source:/trunk/lib/redmine/scm/adapters/git_adapter.rb#L191).

Actions #1

Updated by Felix Schäfer over 14 years ago

  • Status changed from New to Closed
  • Resolution set to Cant reproduce

Mmh, that may have been a weird byproduct of some other stuff I was experimenting with at the time, at least I wasn't able to really reproduce that now (might be rather related to #6346 too). Closing for now.

Actions #2

Updated by Tristram Laporte about 13 years ago

SPAM

Actions

Also available in: Atom PDF