Skip to content

Commit

Permalink
Cast to date before formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Mar 13, 2018
1 parent ebce7f0 commit 3283b62
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 3283b62

Please sign in to comment.