hellow firends!
I took the guide to create a custom service page from here:
but I want to show the schedule hours in 24hr format, like 16:00
instead of 12hr format, like 04:00pm
how can I do it?
I assume it is somewhere here?
// Format schedule times.
function mapTimes(times) {
return times.map(time => {
// Split the time into hour, minute, and seconds sections.
const splitStartTime = (time.startTime).split(“:”);
// Determine if the time is am or pm.
const suffix = splitStartTime[0] < 24 ? ‘am’ : ‘pm’;
// Return the hour, minutes, and suffix texts.
return ${(splitStartTime[0] % 12 + ":" + splitStartTime[1])} ${suffix}
;
})
}
thank you in advance