Skip to content

Commit 497ca77

Browse files
committed
Merge branch 'master' into app-config-js
2 parents f176414 + 2483a93 commit 497ca77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app-config-extensions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export function timestampDirective(dateSource: () => Date = () => new Date()): P
226226
} else if (typeof value === 'object') {
227227
const { locale, ...options } = value;
228228

229-
formatted = date.toLocaleDateString(locale, options);
229+
formatted = date.toLocaleDateString(locale, options as Intl.DateTimeFormatOptions);
230230
} else {
231231
throw new AppConfigError('$timestamp was provided an invalid option');
232232
}

0 commit comments

Comments
 (0)