Skip to content

Commit

Permalink
fix 12pm display bug in timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
u10int committed Feb 15, 2017
1 parent f30a43e commit 96d5755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aerismaps-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
var hours = date.getHours();
var ttime = "AM";

if (format.indexOf("t") > -1 && hours > 12) {
hours = hours - 12;
if (format.indexOf("t") > -1 && hours >= 12) {
if (hours > 12) hours = hours - 12;
ttime = "PM";
}

Expand Down

0 comments on commit 96d5755

Please sign in to comment.