File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 15461546 tp_date . setMicroseconds ( tp_inst . microsec ) ;
15471547 } else {
15481548 tp_date = new Date ( date . getTime ( ) ) ;
1549+ tp_date . setMicroseconds ( date . getMicroseconds ( ) ) ;
15491550 }
15501551 if ( tp_date . toString ( ) == 'Invalid Date' ) {
15511552 tp_date = undefined ;
15731574 }
15741575 }
15751576
1576- var tp_inst = this . _get ( inst , 'timepicker' ) ,
1577- tp_date = ( date instanceof Date ) ? new Date ( date . getTime ( ) ) : date ;
1577+ var tp_inst = this . _get ( inst , 'timepicker' ) ;
1578+ var tp_date ;
1579+ if ( date instanceof Date ) {
1580+ tp_date = new Date ( date . getTime ( ) ) ;
1581+ tp_date . setMicroseconds ( date . getMicroseconds ( ) ) ;
1582+ } else {
1583+ tp_date = date ;
1584+ }
15781585
15791586 // This is important if you are using the timezone option, javascript's Date
15801587 // object will only return the timezone offset for the current locale, so we
You can’t perform that action at this time.
0 commit comments