We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8973936 commit dcaae97Copy full SHA for dcaae97
app-config-extensions/src/index.ts
@@ -225,7 +225,7 @@ export function timestampDirective(dateSource: () => Date = () => new Date()): P
225
} else if (typeof value === 'object') {
226
const { locale, ...options } = value;
227
228
- formatted = date.toLocaleDateString(locale, options);
+ formatted = date.toLocaleDateString(locale, options as Intl.DateTimeFormatOptions);
229
} else {
230
throw new AppConfigError('$timestamp was provided an invalid option');
231
}
0 commit comments