diff --git a/app_dart/lib/src/service/commit_service.dart b/app_dart/lib/src/service/commit_service.dart index 2a624be2a..11b1c0869 100644 --- a/app_dart/lib/src/service/commit_service.dart +++ b/app_dart/lib/src/service/commit_service.dart @@ -53,7 +53,7 @@ class CommitService { final Key key = datastore.db.emptyKey.append(Commit, id: id); return Commit( key: key, - timestamp: commit.author?.createdAt?.millisecondsSinceEpoch, + timestamp: DateTime.now().millisecondsSinceEpoch, repository: slug.fullName, sha: commit.sha, author: commit.author?.login, diff --git a/app_dart/test/service/commit_service_test.dart b/app_dart/test/service/commit_service_test.dart index 2026b2b20..63bed6c29 100644 --- a/app_dart/test/service/commit_service_test.dart +++ b/app_dart/test/service/commit_service_test.dart @@ -61,7 +61,6 @@ void main() { RepositoryCommit( sha: sha, author: User( - createdAt: DateTime.parse(dateTimeAsString), login: username, avatarUrl: avatarUrl, ), @@ -78,7 +77,6 @@ void main() { expect(commit.repository, "$owner/$repository"); expect(commit.message, message); expect(commit.key.id, "$owner/$repository/$branch/$sha"); - expect(commit.timestamp, DateTime.parse(dateTimeAsString).millisecondsSinceEpoch); expect(commit.sha, sha); expect(commit.author, username); expect(commit.authorAvatarUrl, avatarUrl);