You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In format.ts when expandFormat is called, the specified _longDateFormat is not used properly to format the Date.
Using ngx-bootstrap 1.9.2.
Example:
I picked 'de' as locale which has: 'DD.MM.YYYY' as a _longDateFormat "L".
In File format.ts:
Looking into expandFormat() --> locale.longDateFormat(L) is set.
When format.replace(localFormattingTokens, replaceLongDateFormatTokens) is called, the locale specific part gets missing somehow.
In file locale.class.ts:
The locale specific formatting is lost and the default-format for L is used.
This results in a date that is formatted: 'MM/DD/YYY'.
The text was updated successfully, but these errors were encountered:
In format.ts when expandFormat is called, the specified _longDateFormat is not used properly to format the Date.
Using ngx-bootstrap 1.9.2.
Example:
I picked 'de' as locale which has: 'DD.MM.YYYY' as a _longDateFormat "L".
In File format.ts:
Looking into
expandFormat()
-->locale.longDateFormat(L)
is set.When
format.replace(localFormattingTokens, replaceLongDateFormatTokens)
is called, the locale specific part gets missing somehow.In file locale.class.ts:
The locale specific formatting is lost and the default-format for L is used.
This results in a date that is formatted: 'MM/DD/YYY'.
The text was updated successfully, but these errors were encountered: