12:00-1:00 should be in PM , slider is showing AM
coolnikhilj22 opened this issue · comments
coolnikhilj22 commented
Add this line to your code:
if (hours == 12 && value > 719) {
hours = 12;
time = "PM";
}
else if (hours > 12) {
hours = hours - 12;
time = "PM";
}
instead of:
if (hours > 12) {
hours = hours - 12;
time = "PM";
}
will resolve the issue ;) :)