We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d1e9f commit b13c948Copy full SHA for b13c948
classtime.js
@@ -622,8 +622,8 @@ function getFormattedTimeStringFromObject(timeObject) {
622
var pmString = "";
623
624
//convert to 12 hour if necessary
625
- if (!use24HourTime && timeObject.hours > 12) {
626
- timeObject.hours -= 12;
+ if (!use24HourTime && timeObject.hours >= 12) {
+ if (timeObject.hours > 12) { timeObject.hours -= 12};
627
pmString = " PM";
628
629
} else if (!use24HourTime) {
0 commit comments