Skip to content

High performance self-hosted photo and video management solution.

fix(server): apply timezone to storage template (#3504)

Jason Rasmussenba71c83948be
diff --git a/server/src/domain/storage-template/storage-template.service.ts b/server/src/domain/storage-template/storage-template.service.ts
index a40f09b1ec..ce49faffc7 100644
--- a/server/src/domain/storage-template/storage-template.service.ts
+++ b/server/src/domain/storage-template/storage-template.service.ts
@@ -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,