Skip to content

Commit

Permalink
fix: correctly handle created meta field
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 30, 2024
1 parent 118a333 commit a8b77df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ export class Service {
this.logger.debug('GET api LastModified', { lastModified: headObject?.LastModified });
metaObj.modified = new Date(headObject.LastModified);
}

if (metaObj?.created && typeof metaObj.created === 'string') {
metaObj.created = new Date(metaObj.created);
}

try {
for await (const chunk of downloadable) {
yield {
Expand Down

0 comments on commit a8b77df

Please sign in to comment.