Skip to content

Commit

Permalink
[preprocessor/folder] ensure utc timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed May 31, 2024
1 parent 10d0c6b commit 13c280d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preprocessor/folder/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func getFileMetadata(filePath string) (map[string]any, error) {
"media_type": mediaType,
"file_size": fileInfo.Size(),
"file_name": fileInfo.Name(),
"last_modified": fileInfo.ModTime().Format(time.RFC3339),
"time_created": fileInfo.ModTime().Format(time.RFC3339),
"last_modified": fileInfo.ModTime().UTC().Format(time.RFC3339),
"time_created": fileInfo.ModTime().UTC().Format(time.RFC3339),
}, nil
}

Expand Down

0 comments on commit 13c280d

Please sign in to comment.