aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-05-16 00:03:06 +0100
committerChristopher Baines <mail@cbaines.net>2019-05-16 00:03:06 +0100
commite6effe7556490b2f4a3ec69b784125129ed93aab (patch)
treebcc8c223bebbb4fb48ed768e6d97a1fdbc098a31 /tests
parent16799a34a96bfa240b3eb47d75c935afab8c51a1 (diff)
downloaddata-service-e6effe7556490b2f4a3ec69b784125129ed93aab.tar
data-service-e6effe7556490b2f4a3ec69b784125129ed93aab.tar.gz
Fix how email dates are inserted in to PostgreSQL
Previously, the timezone was stripped off, so the timestamps were off. This commit changes the code to use a Unix timestamp, which avoids this issue.
Diffstat (limited to 'tests')
-rw-r--r--tests/model-git-branch.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/model-git-branch.scm b/tests/model-git-branch.scm
index f9b6206..f015cba 100644
--- a/tests/model-git-branch.scm
+++ b/tests/model-git-branch.scm
@@ -1,4 +1,5 @@
(define-module (test-model-git-branch)
+ #:use-module (srfi srfi-19)
#:use-module (srfi srfi-64)
#:use-module (guix-data-service database)
#:use-module (guix-data-service model git-repository)
@@ -18,7 +19,7 @@
"master"
"test-commit"
id
- (strftime "%c" (gmtime (current-time)))))
+ (current-date)))
#t)
#:always-rollback? #t))))