diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-05-04 16:25:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 16:25:57 +0800 |
commit | 9bb218734c53c98a13264c2f4f479e3633ccfe18 (patch) | |
tree | f32557409337e18d9f7959dcb2089f0bf698513b /internal/db/main_test.go | |
parent | 82ffca3fc9988345016c8033f7f65c5b028dfe10 (diff) |
db: use GORM to backup and restore non-legacy tables (#6142)
Diffstat (limited to 'internal/db/main_test.go')
-rw-r--r-- | internal/db/main_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/main_test.go b/internal/db/main_test.go index c6cc6f9e..6813118e 100644 --- a/internal/db/main_test.go +++ b/internal/db/main_test.go @@ -35,7 +35,7 @@ func TestMain(m *testing.M) { } } - now := time.Now().Truncate(time.Second) + now := time.Now().UTC().Truncate(time.Second) gorm.NowFunc = func() time.Time { return now } os.Exit(m.Run()) |