aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-15 15:13:33 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-15 15:13:33 +1100
commit534bc456be7858e4a53edaa291347134d027a386 (patch)
tree70b53707ba502da38368b69f92513824b557a9f8 /src/lib.ts
parent356ffa2250c66c442cfa8c4e638ca53926396a65 (diff)
Fix searches failing in certain cases
Fix server handling of 'incl' query param Force update of idToEvent for certain searches Adjust search-highlight-removal code to avoid pending-search case Fix event-transition-skipping code in updateLayout() to handle quick repeated calls
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.ts b/src/lib.ts
index c2c61cc..6299345 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -500,9 +500,8 @@ export function jsonToImgInfo(json: ImgInfoJson | null): ImgInfo | null {
}
// For dates in a timeline
-const currentDate = new Date();
export const MIN_DATE = new YearDate(-13.8e9);
-export const MAX_DATE = new CalDate(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
+export const MAX_DATE = new CalDate(2030, 1, 1);
export const MONTH_SCALE = -1;
export const DAY_SCALE = -2;
export const SCALES = [1e9, 1e8, 1e7, 1e6, 1e5, 1e4, 1e3, 100, 10, 1, MONTH_SCALE, DAY_SCALE];