aboutsummaryrefslogtreecommitdiff
path: root/internal/db/backup.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/backup.go')
-rw-r--r--internal/db/backup.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/db/backup.go b/internal/db/backup.go
index e03d78c1..836672b1 100644
--- a/internal/db/backup.go
+++ b/internal/db/backup.go
@@ -85,6 +85,11 @@ func dumpTable(db *gorm.DB, table interface{}, w io.Writer) error {
return errors.Wrap(err, "scan rows")
}
+ switch e := elem.(type) {
+ case *LFSObject:
+ e.CreatedAt = e.CreatedAt.UTC()
+ }
+
err = jsoniter.NewEncoder(w).Encode(elem)
if err != nil {
return errors.Wrap(err, "encode JSON")