File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -829,6 +829,7 @@ <h3 id="rest_examples">Time Restraints</h3>
829
829
var endDateTextBox = $('#rest_example_4_end');
830
830
831
831
startDateTextBox.datetimepicker({
832
+ timeFormat: 'HH:mm z',
832
833
onClose: function(dateText, inst) {
833
834
if (endDateTextBox.val() != '') {
834
835
var testStartDate = startDateTextBox.datetimepicker('getDate');
@@ -845,6 +846,7 @@ <h3 id="rest_examples">Time Restraints</h3>
845
846
}
846
847
});
847
848
endDateTextBox.datetimepicker({
849
+ timeFormat: 'HH:mm z',
848
850
onClose: function(dateText, inst) {
849
851
if (startDateTextBox.val() != '') {
850
852
var testStartDate = startDateTextBox.datetimepicker('getDate');
Original file line number Diff line number Diff line change 1968
1968
$ . timepicker . timezoneAdjust = function ( date , toTimezone ) {
1969
1969
var toTz = $ . timepicker . timezoneOffsetNumber ( toTimezone ) ;
1970
1970
if ( ! isNaN ( toTz ) ) {
1971
- var currTz = date . getTimezoneOffset ( ) * - 1 ,
1972
- diff = currTz - toTz ; // difference in minutes
1973
-
1974
- date . setMinutes ( date . getMinutes ( ) + diff ) ;
1971
+ date . setMinutes ( date . getMinutes ( ) * 1 + ( date . getTimezoneOffset ( ) * - 1 - toTz * 1 ) ) ;
1975
1972
}
1976
1973
return date ;
1977
1974
} ;
You can’t perform that action at this time.
0 commit comments