Merge branch 'develop' into 'main'
AW-136-personal-video-to-trial-page See merge request witapp/aura-webapp!231
This commit is contained in:
commit
4fae45894e
@ -25,7 +25,7 @@ export const getDaysInMonth = (year: number, month: number): number => {
|
|||||||
export const format = (hour: string, minute: string, period: string) => {
|
export const format = (hour: string, minute: string, period: string) => {
|
||||||
const formattedHour = hour === '12' ? (period === 'AM' ? '00' : '12') : (period === 'PM' ? String(Number(hour) + 12) : hour)
|
const formattedHour = hour === '12' ? (period === 'AM' ? '00' : '12') : (period === 'PM' ? String(Number(hour) + 12) : hour)
|
||||||
const formattedMinute = normalize(minute, 2)
|
const formattedMinute = normalize(minute, 2)
|
||||||
return `${formattedHour}:${formattedMinute}`
|
return `${normalize(formattedHour, 2)}:${formattedMinute}`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const parse = (value: string) => {
|
export const parse = (value: string) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user