site date time variable

Use the correct time zone in ChronoForms v7 date variables.

Overview

The syntax for site-specific date variables changed from using a slash to a dot in version 7.
Replace the old syntax {date/site:} with the new syntax {date.site:} to display the correct local time zone.

Answered
ChronoForms v7
di different_greyhead 08 Nov, 2020
1 Likes
Hi,

Is there a new syntax for {date/site:} in CF7 as it does not work for me? If I use {date:} it works but is not the correct time zone. My php.ini is set to use America/Toronto for date.timezone but the web host controls the default which is set to UTC.

Thank you in advance for any assistance you can offer.
Max_admin Max_admin 11 Nov, 2020
Answer
1 Likes
v7 uses "." instead of /

so you should use:
{date.site:}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ie ieraora 18 Aug, 2021
I search this information for more time.
Could be a good idea add this to Variable shortcode at this link. that is the first in search google?
https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5289-variable-shortcodes
Gr GreyHead 19 Aug, 2021
Hi ieraora,

I have added a note about this to the FAQ

Bob
Post a Reply