+
@@ -75,7 +79,9 @@ const graph = computed(() => props.data.graph || {});
const dashboardStore = useDashboardStore();
const appStore = useAppStoreWithOut();
const content = computed(() => {
- const text = appStore.duration.map((date: Date) => tf(date)).join(` ~ `);
+ const text = [appStore.duration.start, appStore.duration.end]
+ .map((date: Date) => tf(date, "YYYY-MM-DD HH:mm"))
+ .join(` ~ `);
return text;
});
@@ -86,7 +92,7 @@ function editConfig() {
dashboardStore.setConfigPanel(true);
dashboardStore.selectWidget(props.data);
}
-function tf(time: Date, format?: any): string {
+function tf(time: Date, format: any): string {
const local = {
dow: 1, // Monday is the first day of the week
hourTip: t("hourTip"), // tip of select hour
@@ -136,7 +142,7 @@ function tf(time: Date, format?: any): string {
}