Fast.Ecto.TimeZoneQuery (Fast v0.11.0)

View Source

Summary

Functions

Converts a timestamp to the specified timezone. Ensures proper timezone conversion by

Converts US timezone names to IANA timezone names for PostgreSQL compatibility.

Functions

at_time_zone(timestamp_expr, tz_field)

(macro)

Converts a timestamp to the specified timezone. Ensures proper timezone conversion by:

  1. Converting the timestamp to UTC
  2. Converting to the target timezone
  3. Converting back to timestamptz

iana_tz(tz_field)

(macro)

Converts US timezone names to IANA timezone names for PostgreSQL compatibility.