mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): use mtime instead of ctime for fileCreatedAt (#4191)
This commit is contained in:
parent
0e63efb490
commit
25d1b3e1b1
2 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ export class CrawledAsset {
|
|||
async process() {
|
||||
const stats = await fs.promises.stat(this.path);
|
||||
this.deviceAssetId = `${basename(this.path)}-${stats.size}`.replace(/\s+/g, '');
|
||||
this.fileCreatedAt = stats.ctime.toISOString();
|
||||
this.fileCreatedAt = stats.mtime.toISOString();
|
||||
this.fileModifiedAt = stats.mtime.toISOString();
|
||||
this.fileSize = stats.size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue