Skip to content

Commit b97b476

Browse files
committed
Removes dateformat and timeformat in graph
1 parent afc74af commit b97b476

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/components/monitor/graph/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dayjs.extend(timezone);
2727
dayjs.extend(utc);
2828

2929
const MonitorGraph = ({ monitor }: { monitor: MonitorProps }) => {
30-
const { dateformat, timeformat, theme, timezone } = useLocalStorageContext();
30+
const { theme, timezone } = useLocalStorageContext();
3131

3232
const { statusType, statusHeartbeats, setStatusType } =
3333
useGraphStatus(monitor);
@@ -67,7 +67,7 @@ const MonitorGraph = ({ monitor }: { monitor: MonitorProps }) => {
6767
style={{ fill: 'var(--accent-200)' }}
6868
tick={{ fontSize: 12 }}
6969
tickFormatter={(value) => {
70-
return dayjs(value).tz(timezone).format(timeformat);
70+
return dayjs(value).tz(timezone).format('HH:mm');
7171
}}
7272
interval={8}
7373
/>
@@ -86,7 +86,7 @@ const MonitorGraph = ({ monitor }: { monitor: MonitorProps }) => {
8686
labelFormatter={(value) => {
8787
return dayjs(value)
8888
.tz(timezone)
89-
.format(`${dateformat} - ${timeformat}`);
89+
.format(`DD MMM YYYY - HH:mm:ss`);
9090
}}
9191
separator=": "
9292
contentStyle={{

0 commit comments

Comments
 (0)