search: fix server-side date behaviour

OffsetMinutesFromUTC was being passed incorrectly by the web app
(getTimezoneOffset if UTC - Timezone, we wanted Timezone - UTC), now
fixed. This value is now used if given in comparisons. Times are
truncated to minute-deep precision, and Any date comparison ignores
empty date fields (i.e. a unix timestamp being 0 or a time.Time.IsZero()
== true).
This commit is contained in:
Harvey Tindall
2025-05-27 14:57:56 +01:00
parent b40abafb95
commit 1d7d82b793
5 changed files with 45 additions and 6 deletions
+1
View File
@@ -174,6 +174,7 @@ interface ParsedDate {
attempt: DateAttempt;
date: Date;
text: string;
invalid?: boolean;
};
declare var config: Object;