Skip to content

Commit

Permalink
Merge pull request #946 from nextcloud-libraries/artonge/fix/lastModi…
Browse files Browse the repository at this point in the history
…fied_usage

Divide lastModified by 1000 to have seconds
  • Loading branch information
artonge committed Oct 17, 2023
2 parents 04388fc + a411988 commit 7361ea2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/uploader.ts
Expand Up @@ -208,9 +208,9 @@ export class Uploader {
() => this.updateStats(),
destinationFile,
{
'X-OC-Mtime': file.lastModified,
'X-OC-Mtime': file.lastModified / 1000,
'OC-Total-Length': file.size,
}
},
)
// Update upload progress on chunk completion
.then(() => { upload.uploaded = upload.uploaded + maxChunkSize })
Expand Down Expand Up @@ -278,8 +278,8 @@ export class Uploader {
() => this.updateStats(),
undefined,
{
'X-OC-Mtime': file.lastModified,
}
'X-OC-Mtime': file.lastModified / 1000,
},
)

// Update progress
Expand Down

0 comments on commit 7361ea2

Please sign in to comment.