CASE: get the local date

Whenever a database variables (such as a boolean for example) gets updated, you can the timestamp when the update was done:

{% input custom.filing.check as:boolean assign:check_filing %}

{{ check_filing.updated_at | date:"%d/%m/%Y %H:%M" }}

However, this gives you a timestamp in CEST, so whenever you did the update in another timezone, that information would not be what you expect it to be.

But we have a specific date-filter for this, called localized_date, which gives you the correct timestamp depending on your local settings:

{{ check_filing.updated_at | localized_date:“%d/%m/%Y %H:%M” }}

1 Like

Ah, finally, thanks.

1 Like