Skip to content

AB Timestamp With Timezone Field

Public single datetime field with timezone (timestamptz). Thin wrapper over the shared range/timezone implementation with type ‘date time timezone’.

HTML tag: c-e932d6bbcc98d45f0b53e00bd7b64bd45

  • single timestamp with time zone column
  • timestamptz form field
  • datetime entry with timezone selector
PropTypeDefaultDescription
labelString
valueString
pg_data_typeStringtimestamp with time zone
display_timezoneString
readonlyBoolean
date_formatString
display_formatString
typeStringdate time timezone
enabledBoolean
disabledBoolean
  • Bind .value as timestamptz string from backend.
  • Set pg_data_type to ‘timestamp with time zone’ (default).
  • display_timezone controls display (defaults to browser TZ).
  • Listen for value-modified and value-changed — not ‘change’.
EventDetail
value-modifiedString
value-changedString

Do not use ab-timestamp-range-with-timezone-field for a single timestamp column. Do not use ab-date-field + ab-time-field when one timestamptz field is required.

<c-e932d6bbcc98d45f0b53e00bd7b64bd45 .label=${'Created at'} .value=${createdAt} .display_timezone=${'Europe/Belgrade'} @value-modified=${onTs}></c-e932d6bbcc98d45f0b53e00bd7b64bd45>