diff --git a/spec/legacy/unit/lib/redmine/scm/adapters/git_adapter_spec.rb b/spec/legacy/unit/lib/redmine/scm/adapters/git_adapter_spec.rb index d56e5e55ec..25c4bf22a8 100644 --- a/spec/legacy/unit/lib/redmine/scm/adapters/git_adapter_spec.rb +++ b/spec/legacy/unit/lib/redmine/scm/adapters/git_adapter_spec.rb @@ -149,7 +149,7 @@ describe OpenProject::Scm::Adapters::Git, type: :model do assert_equal '4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8', last_rev.scmid assert_equal '4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8', last_rev.identifier assert_equal 'Adam Soltys ', last_rev.author - assert_equal '2009-06-24 05:27:38'.to_time, last_rev.time + assert_equal '2009-06-24 05:27:38 +0000'.to_time, last_rev.time end it 'should last rev with spaces in filename' do @@ -167,7 +167,7 @@ describe OpenProject::Scm::Adapters::Git, type: :model do last_rev.author assert_equal "#{str_felix_hex} ", last_rev.author - assert_equal '2010-09-18 19:59:46'.to_time, last_rev.time + assert_equal '2010-09-18 19:59:46 +0000'.to_time, last_rev.time end it 'test latin 1 path' do diff --git a/spec/legacy/unit/repository_git_spec.rb b/spec/legacy/unit/repository_git_spec.rb index d4dafe3742..25813df1ca 100644 --- a/spec/legacy/unit/repository_git_spec.rb +++ b/spec/legacy/unit/repository_git_spec.rb @@ -76,7 +76,7 @@ describe Repository::Git, type: :model do assert_equal 'jsmith ', commit.committer assert_equal User.find_by_login('jsmith'), commit.user # TODO: add a commit with commit time <> author time to the test repository - assert_equal '2007-12-14 09:22:52'.to_time, commit.committed_on + assert_equal '2007-12-14 09:22:52 +0000'.to_time, commit.committed_on assert_equal '2007-12-14'.to_date, commit.commit_date assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', commit.revision assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', commit.scmid