Skip to content
Discussion options

You must be logged in to vote

By default, default_timezone in Hindsight is set to "UTC", and the UI formats occurred_start into your browser's local timezone via new 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 in UTC-6 (America/Chicago / MDT).

Set your IANA timezone via HINDSIGHT_API_DEFAULT_TIMEZONE (or default_timezone on the bank config) and pass a timezone-aware event_date when retaining memories so naive dates resolve to local midnight instead of UTC.

❌ Before (defaults to UTC, shifting midnight back a day in local time)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jenks6797
Comment options

Answer selected by jenks6797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants