fixed for pm

This commit is contained in:
Sajal Sharma
2017-10-07 04:00:10 -07:00
parent 078926bbd7
commit f51b824dd0
+2 -2
View File
@@ -38,7 +38,7 @@ function getInformation(information)
else
{
hour = parseInt(elements[2].substring(0, 2)) + 12;
timePortion1 = hour + elements[2].substring(2, 5);
timePortion1 = hour + elements[2].substring(2, 5) + ":00-07:00";
}
if (elements[3].substring(5).toLowerCase() === "am")
@@ -48,7 +48,7 @@ function getInformation(information)
else
{
hour = parseInt(elements[3].substring(0, 2)) + 12;
timePortion2 = hour + elements[3].substring(2, 5);
timePortion2 = hour + elements[3].substring(2, 5) + ":00-07:00";
}
}
console.log([elements[0], datePortion + "T" + timePortion1, datePortion + "T" + timePortion2]);