Expand description
Display time zone for *_iso fields (flag --tz, env SQLITE_GRAPHRAG_DISPLAY_TZ, fallback UTC).
Display timezone for *_iso fields in JSON output.
Precedence (highest to lowest priority):
--tz <IANA>flag passed on the CLI- Env var
SQLITE_GRAPHRAG_DISPLAY_TZ - Fallback UTC
The timezone is initialized once via init and stored in
GLOBAL_TZ (OnceLock). After initialization, format_iso and
epoch_to_iso convert timestamps applying the chosen timezone.
Functionsยง
- current_
tz - Returns the active timezone.
- epoch_
to_ iso - Converts a Unix epoch (seconds) to an ISO 8601 string with the global timezone.
- format_
iso - Formats a
DateTime<Utc>using the global timezone. - init
- Initializes the global timezone.