fix cache

This commit is contained in:
2024-05-27 19:21:38 +02:00
parent c484948a5e
commit 1e57e7c33e

View File

@@ -16,8 +16,8 @@ export type EsiMarketOrderHistory = {
const historyCache: RegionalMarketCache<EsiMarketOrderHistory[]> = new RegionalMarketCache(() => {
const date = new Date();
if (date.getUTCHours() < 11) {
date.setUTCDate(date.getUTCDate() - 1);
if (date.getUTCHours() >= 11) {
date.setUTCDate(date.getUTCDate() + 1);
}
date.setUTCHours(11, 0, 0, 0);
return date;