Skip to content

Commit b887fb0

Browse files
committed
Use getter instead fo inline cast
1 parent 8739779 commit b887fb0

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: new Date(object.metadata["last-modified"]).toISOString(),
47+
LastModified: object.lastModifiedDate.toISOString(),
4848
ETag: object.metadata["etag"],
4949
Size: object.size,
5050
StorageClass: "STANDARD",

0 commit comments

Comments
 (0)