Local Date time

Get local date time in ChronoForms calendar or text fields.

Overview

The {date.site:Y-m-d} placeholder in CF8 was returning UTC instead of the site's local time.
Update to a version of CF8 where support for the {date.site:} placeholder to use the site's timezone has been added.

Answered
ChronoForms v8
si simelas 03 Jan, 2025
1 Likes

Hi Max,

Maybe a bug.

When using  {date.site:Y-m-d} or {date.site: }  in calendar or text field with CF8 it return utc date time (the server is correctly set on local date time). This feature was (is) working correctly with CF7 (e.g. giving correct local date time) and with previous versions with {date/site:}

best,

Simelas

Max_admin Max_admin 05 Jan, 2025
Answer
1 Likes

Hi Simelas

ok, I have added support for {data.site:} to return the time based on the site's timezone

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.