]> source.dussan.org Git - redmine.git/commitdiff
scm: git: remove localtime (#6346).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Feb 2011 08:45:54 +0000 (08:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Feb 2011 08:45:54 +0000 (08:45 +0000)
No needs to use localtime.
If we use localtime, we should clone.

See r4794 and r4802.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4823 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index a241f8393782baaddb40ecc77103a10b8ad0ff0d..88514439a0acccd91d2b81e6f73e904d1ae9890c 100644 (file)
@@ -109,7 +109,7 @@ module Redmine
           begin
               id = lines[0].split[1]
               author = lines[1].match('Author:\s+(.*)$')[1]
-              time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1]).localtime
+              time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
 
               Revision.new({
                 :identifier => id,