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

Also available in: Atom PDF