We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5122ed8 commit eb2dbb7Copy full SHA for eb2dbb7
frontend/src/components/util/Time.tsx
@@ -25,7 +25,11 @@ export const getHourMinute = (v: any) => {
25
};
26
27
export const timeFormat = (h: number, m: number) => {
28
- return h.toString() + ':' + (m < 10 ? '0' + m.toString() : m.toString());
+ return (
29
+ (h < 10 ? '0' + h.toString() : h.toString()) +
30
+ ':' +
31
+ (m < 10 ? '0' + m.toString() : m.toString())
32
+ );
33
34
35
export const timeToHalfAndFullHours = (
0 commit comments