Skip to content

Commit

Permalink
Merge pull request #183 from n1ru4l/upstream/n1ru4l-patch-1
Browse files Browse the repository at this point in the history
Cast to date before formatting
  • Loading branch information
n1ru4l committed Mar 13, 2018
2 parents ebce7f0 + 3283b62 commit 8739779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xml-template-builder.js
Expand Up @@ -44,7 +44,7 @@ exports.buildBucketQuery = function(options, data) {
...data.objects.map(object => ({
Contents: {
Key: object.key,
LastModified: object.metadata["last-modified"].toISOString(),
LastModified: new Date(object.metadata["last-modified"]).toISOString(),
ETag: object.metadata["etag"],
Size: object.size,
StorageClass: "STANDARD",
Expand Down

0 comments on commit 8739779

Please sign in to comment.