fix: notification card (#1583)

This commit is contained in:
Aaryan Khandelwal
2023-07-20 10:52:52 +05:30
committed by GitHub
parent 26b18b431b
commit 6eb72507a5
7 changed files with 145 additions and 491 deletions

View File

@@ -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 => {