fix: dates

This commit is contained in:
Fine 2023-02-07 15:07:12 +08:00
parent 37a14adbd4
commit 267ef5b513

View File

@ -89,10 +89,8 @@ limitations under the License. -->
await queryMetrics(); await queryMetrics();
} }
async function setDuration() { async function setDuration() {
const dates: Date[] = [ const dates: Date[] = [new Date(new Date().getTime() - config.value.auto), new Date()];
getLocalTime(appStoreWithOut.utc, new Date(new Date().getTime() - config.value.auto)),
getLocalTime(appStoreWithOut.utc, new Date()),
];
appStoreWithOut.setDuration(timeFormat(dates)); appStoreWithOut.setDuration(timeFormat(dates));
} }
async function setSelector() { async function setSelector() {