CFv8 date shortcode - How to display in site's timezone instead of UTC

david3482 16 Dec, 2023
PHP 8.0.30 - php.ini: date.timezone = America/New_York
Joomla 4.4.1 - configuration.php: public $offset = 'America/New_York';
Chronoforms 8.0.17

Dates in Joomla (e.g., Article create date) display in ET (local New York time) and are saved to the database in UTC.

Dates in Chronoforms show as UTC for all of the below shortcodes:
{date:}
{date.site:}
{date.America/New_York:}

How do I get Chronoforms v8 to display New York time, the same as my Joomla site?
Max_admin 17 Dec, 2023
Answer
v8 does not have timezone shortcode, you need to do this in a PHP action and return the value you want then use it a {var:php_action_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger