{{ timezone }}

Stores the timezone that should be used when displaying a date and/or time.

Properties

string object_type
Will always be "timezone".
true/false is_valid
True if the value is a valid timezone string.
string value
timezone string.
html output
timezone string.
html output_in_list
Same as output.
string field_id
The identifier for this field.
html default_value
The default value for this field if no value is specified.

Examples

{% set_timezone entity.main_timezone %}
{{ article.post_date | to_timezone: session.user_timezone }}
{% if entity.alt_timezone.is_valid %}
    {{ entity.alt_date | to_timezone: entity.alt_timezone | date: 'f' }}
{% endif %}

Developer Overview

Liquid Markup