CSR-1137 | Format hours
This commit is contained in:
parent
8d59369292
commit
67f5a140d4
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ export default {
|
|||
},
|
||||
// Expected input: "HH:MM:SS"
|
||||
getDisplayTextForMilitaryTime(militaryTimeInput) {
|
||||
let hours = militaryTimeInput.split(":")[0];
|
||||
let hours = parseInt(militaryTimeInput.split(":")[0]);
|
||||
const minutes = militaryTimeInput.split(":")[1];
|
||||
let meridianNotation = "AM";
|
||||
if (militaryTimeInput.split(":")[0] > 12) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue