Skip to content

Commit 003ccae

Browse files
committed
front: drop datetime2string()
This is unused. Signed-off-by: Simon Ser <[email protected]>
1 parent 765a3ab commit 003ccae

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

front/src/utils/timeManipulation.ts

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ export function minToMs(min: number) {
2020
return min * 60 * 1000;
2121
}
2222

23-
export function datetime2string(ts: string | number | Date): TimeString {
24-
const datetime = new Date(ts);
25-
return datetime.toLocaleString();
26-
}
27-
2823
export function datetime2time(datetime: Date) {
2924
const formatTime = d3.timeFormat('%H:%M:%S');
3025
return formatTime(datetime);

0 commit comments

Comments
 (0)