Currently at during the 12 PM hour the clock says 00 instead of 12.
So if you can change the clock code in "function startTime()" I recommend that you change it from:
to:
Thanks,
Scott, I promise not to bug you anymore today
So if you can change the clock code in "function startTime()" I recommend that you change it from:
Code:
if (h >= 12) {
h -= 12
am_pm = "P.M."
}
else {
am_pm ="A.M."
}
Code:
if (h > 12) {
h -= 12
am_pm = "P.M."
}
else if (h == 12) {
am_pm = "P.M."
}
else {
am_pm ="A.M."
}
Scott, I promise not to bug you anymore today