fix: notification card (#1583)
This commit is contained in:
parent
26b18b431b
commit
6eb72507a5
7 changed files with 145 additions and 491 deletions
|
|
@ -217,7 +217,7 @@ export const render12HourFormatTime = (date: string | Date): string => {
|
|||
if (hours > 12) hours -= 12;
|
||||
}
|
||||
|
||||
return hours + ":" + minutes + " " + period;
|
||||
return hours + ":" + (minutes < 10 ? `0${minutes}` : minutes) + " " + period;
|
||||
};
|
||||
|
||||
export const render24HourFormatTime = (date: string | Date): string => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue