mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Forgot to commit this
This commit is contained in:
parent
fd5e574e70
commit
4cc6a6a12c
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@ const defaultLocale = mem(
|
|||
);
|
||||
|
||||
const _DateTimeFormat = (opts) => {
|
||||
const { locale, dateYear, hideTime, formatOpts } = opts || {};
|
||||
const { locale, dateYear, hideTime, formatOpts, forceOpts } = opts || {};
|
||||
const regionlessLocale = locale.replace(/-[a-z]+$/i, '');
|
||||
const loc = localeMatch([regionlessLocale], [defaultLocale], locale);
|
||||
const currentYear = new Date().getFullYear();
|
||||
const options = {
|
||||
const options = forceOpts || {
|
||||
// Show year if not current year
|
||||
year: dateYear === currentYear ? undefined : 'numeric',
|
||||
month: 'short',
|
||||
|
|
Loading…
Reference in a new issue