Project

General

Profile

Defect #6346 » 6346.patch

Felix Schäfer, 2010-09-09 21:55

View differences:

lib/redmine/scm/adapters/cvs_adapter.rb
80 80
                  :lastrev => Revision.new({
81 81
                    :revision => fields[-4],
82 82
                    :name => fields[-4],
83
                    :time => Time.parse(fields[-3]),
83
                    :time => Time.parse(fields[-3]).localtime,
84 84
                    :author => ''
85 85
                  })
86 86
                })
lib/redmine/scm/adapters/git_adapter.rb
94 94
              id = io.gets.split[1]
95 95
              author = io.gets.match('Author:\s+(.*)$')[1]
96 96
              2.times { io.gets }
97
              time = io.gets.match('CommitDate:\s+(.*)$')[1]
97
              time = Time.parse(io.gets.match('CommitDate:\s+(.*)$')[1]).localtime
98 98

  
99 99
              Revision.new({
100 100
                :identifier => id,
(1-1/3)