Repository navigation
Occurred date is always one day prior #6955
|
Hopefully this is a simple fix, but I notice when an occurred date is extracted, it’s always the day prior. For example if I say my son was born on April 3rd, 2021, it will say it occurred April 2, 2021 at 6:00pm. |
Replies: 1 comment 1 reply
|
By default, Set your IANA timezone via ❌ Before (defaults to
|
By default,
default_timezonein Hindsight is set to"UTC", and the UI formatsoccurred_startinto your browser's local timezone vianew Date(row.occurred_start).toLocaleDateString(). When the extractor saves an event without an explicit time of day (e.g.,"2021-04-03T00:00:00"), it is stored as midnight UTC (2021-04-03T00:00:00Z), which shifts back to April 2, 2021 at 6:00 PM inUTC-6(America/Chicago/ MDT).Set your IANA timezone via
HINDSIGHT_API_DEFAULT_TIMEZONE(ordefault_timezoneon the bank config) and pass a timezone-awareevent_datewhen retaining memories so naive dates resolve to local midnight instead of UTC.❌ Before (defaults to
UTC, shifting midnight back a day in local time)