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.
This commit is contained in:
Christopher Baines 2019-05-16 00:03:06 +01:00
parent 16799a34a9
commit e6effe7556
3 changed files with 5 additions and 4 deletions

View file

@ -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))))