Skip to content

Commit

Permalink
fix(server): apply timezone to storage template (immich-app#3504)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasm91 authored Aug 1, 2023
1 parent 2835919 commit ba71c83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ba71c83

Please sign in to comment.