fixing calendar.js

This commit is contained in:
Sajal Sharma
2017-10-07 01:24:16 -07:00
parent 89a6ce79fe
commit 65cf0135c1
+1 -1
View File
@@ -13,7 +13,7 @@ function getInformation(information)
militaryTime = true;
for (var i = 0; i < elements.length; i++)
{
if (elements[i].toLowerCase() === "pm" || elements[i].toLowerCase() === "am")
if (elements[i].toLowerCase().substring(5) === "pm" || elements[i].toLowerCase().substring(5) === "am")
{
militaryTime = false;
}