File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2485,7 +2485,7 @@ function getNewLocale(def) {
24852485 // exists and the locale requires it
24862486 src = df . mdy ;
24872487 }
2488- if ( df . time ) {
2488+ if ( df . time && ! df . localeCheck || ( df . localeCheck && ! df . localeCheck ( loc ) ) ) {
24892489 // Core formats that allow time require the time
24902490 // reg on both sides, so add both versions here.
24912491 loc . addFormat ( getFormatWithTime ( src , true ) ) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ namespace('Date | Finnish', function () {
1111
1212 method ( 'create' , function ( ) {
1313
14+ assertDateParsed ( '1.12.2019' , new Date ( 2019 , 11 , 1 ) ) ;
1415 assertDateParsed ( '15. toukokuuta 2011' , new Date ( 2011 , 4 , 15 ) ) ;
1516 assertDateParsed ( 'torstai 5. tammikuuta 2012' , new Date ( 2012 , 0 , 5 ) ) ;
1617 assertDateParsed ( 'torstaina 5. tammikuuta 2012' , new Date ( 2012 , 0 , 5 ) ) ;
You can’t perform that action at this time.
0 commit comments