mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(server): apply timezone to storage template (#3504)
This commit is contained in:
parent
2835919931
commit
ba71c83948
@ -233,7 +233,7 @@ export class StorageTemplateService {
|
||||
filetypefull: asset.type == AssetType.IMAGE ? 'IMAGE' : 'VIDEO',
|
||||
};
|
||||
|
||||
const dt = luxon.DateTime.fromJSDate(asset.fileCreatedAt);
|
||||
const dt = luxon.DateTime.fromJSDate(asset.fileCreatedAt, { zone: asset.exifInfo?.timeZone || undefined });
|
||||
|
||||
const dateTokens = [
|
||||
...supportedYearTokens,
|
||||
|
Loading…
Reference in New Issue
Block a user