fixed issue going from 11am to 12pm

This commit is contained in:
Trent Richardson 2010-10-01 10:00:36 -04:00
parent 6e55e5fc6a
commit 43f319fa6c

View file

@ -249,7 +249,8 @@
var hour = tp_inst.hour_slider.slider('value'); var hour = tp_inst.hour_slider.slider('value');
var minute = tp_inst.minute_slider.slider('value'); var minute = tp_inst.minute_slider.slider('value');
var second = tp_inst.second_slider.slider('value'); var second = tp_inst.second_slider.slider('value');
var ampm = (hour < 12) ? 'AM' : 'PM'; var ampm = (hour < 11.5) ? 'AM' : 'PM';
hour = (hour >= 11.5 && hour < 12) ? 12 : hour;
var hasChanged = false; var hasChanged = false;
// If the update was done in the input field, this field should not be updated. // If the update was done in the input field, this field should not be updated.