Set default date/time for default date/time fields in Forms.
R
Respective Stoat
Would be really nice to be able to set the default value of a date/time field to be Now.addhours(-3) or similar with jinja in a form so that users don't have to manually select 3 hours ago, 1 week etc.
Would help in a lot of query/inventory cases, especially in things like mail traces, log retrieval etc.
Log In
T
Tangerine yellow Bandicoot
You can take a timestamp string and adjust it then convert it as needed. Example below:
{{ (workflow.updated_at | int / 1000)
| convert_from_epoch
| as_timezone('America/Chicago')
| format_datetime('%H:%M:%S %m-%d-%Y') }}