Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 533 Bytes
metadata:
title: Selecting a timezone
example start: 2
documentation: "https://docassemble.org/docs/functions.html#timezone_list"
---
modules:
- docassemble.base.util
---
question: |
What is your time zone?
fields:
- Time zone: user_timezone
default: "America/New_York"
code: |
timezone_list()
---
question: |
The time in your timezone is
${ current_datetime(timezone=user_timezone).format_date('MM/dd/yyyy') } at
${ current_datetime(timezone=user_timezone).format_time('h:mm a') }.
mandatory: True