Skip to content

Commit ecf1583

Browse files
author
ddvk
committedApr 23, 2020
bugfix: change the time format to utc
1 parent 6a921d3 commit ecf1583

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎model/document.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func CreateDirDocument(parent, name string) MetadataDocument {
6969
VissibleName: name,
7070
Type: DirectoryType,
7171
Version: 1,
72-
ModifiedClient: time.Now().Format(time.RFC3339Nano),
72+
ModifiedClient: time.Now().UTC().Format(time.RFC3339Nano),
7373
}
7474
}
7575

@@ -98,7 +98,7 @@ func CreateUploadDocumentMeta(id string, entryType, parent, name string) Metadat
9898
VissibleName: name,
9999
Type: entryType,
100100
Version: 1,
101-
ModifiedClient: time.Now().Format(time.RFC3339Nano),
101+
ModifiedClient: time.Now().UTC().Format(time.RFC3339Nano),
102102
}
103103
}
104104

@@ -120,7 +120,7 @@ func (doc Document) ToMetaDocument() MetadataDocument {
120120
VissibleName: doc.VissibleName,
121121
Type: doc.Type,
122122
Version: doc.Version,
123-
ModifiedClient: time.Now().Format(time.RFC3339Nano),
123+
ModifiedClient: time.Now().UTC().Format(time.RFC3339Nano),
124124
}
125125
}
126126

0 commit comments

Comments
 (0)
Please sign in to comment.