View Source Fast.Ecto.TimeZoneQuery (Fast v0.9.0)

Link to this section 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.

Link to this section Functions

Link to this macro

at_time_zone(timestamp_expr, tz_field)

View Source (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
Link to this macro

iana_tz(tz_field)

View Source (macro)

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