File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1546
1546
tp_date . setMicroseconds ( tp_inst . microsec ) ;
1547
1547
} else {
1548
1548
tp_date = new Date ( date . getTime ( ) ) ;
1549
+ tp_date . setMicroseconds ( date . getMicroseconds ( ) ) ;
1549
1550
}
1550
1551
if ( tp_date . toString ( ) == 'Invalid Date' ) {
1551
1552
tp_date = undefined ;
1573
1574
}
1574
1575
}
1575
1576
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
+ }
1578
1585
1579
1586
// This is important if you are using the timezone option, javascript's Date
1580
1587
// 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