Skip to content

Commit 8739779

Browse files
authored
Merge pull request #183 from n1ru4l/upstream/n1ru4l-patch-1
Cast to date before formatting
2 parents ebce7f0 + 3283b62 commit 8739779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/xml-template-builder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.buildBucketQuery = function(options, data) {
4444
...data.objects.map(object => ({
4545
Contents: {
4646
Key: object.key,
47-
LastModified: object.metadata["last-modified"].toISOString(),
47+
LastModified: new Date(object.metadata["last-modified"]).toISOString(),
4848
ETag: object.metadata["etag"],
4949
Size: object.size,
5050
StorageClass: "STANDARD",

0 commit comments

Comments
 (0)