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

This commit is contained in:
Jason Rasmussen 2023-08-01 18:08:07 -04:00 committed by GitHub
parent 2835919931
commit ba71c83948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,