Skip to content

Commit 141f46e

Browse files
authored
Use UTC for testing timestamps passed to git (#4580)
1 parent 6e9a308 commit 141f46e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/descriptor/git.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ class GitRepoDescriptor extends DirectoryDescriptor {
6060
'GIT_COMMITTER_NAME': 'Pub Test',
6161
'GIT_COMMITTER_EMAIL': '[email protected]',
6262
// To make stable commits ids we fix the date.
63-
'GIT_COMMITTER_DATE': DateTime(1970).toIso8601String(),
64-
'GIT_AUTHOR_DATE': DateTime(1970).toIso8601String(),
63+
'GIT_COMMITTER_DATE': DateTime.utc(1970).toIso8601String(),
64+
'GIT_AUTHOR_DATE': DateTime.utc(1970).toIso8601String(),
6565
};
6666

6767
return git.run(

0 commit comments

Comments
 (0)