Pulling Joomla Web TimeZone using Shortcodes

How to display Joomla website time zone using CF shortcodes.

Overview

The standard date shortcode uses server GMT time, not the Joomla Global Configuration time zone.
Use the {date.site:} shortcode, optionally with a format like {date.site:d.m.Y}, to pull the date and time based on the configured website time zone.

Answered
ChronoForms v8
st steveb 02 Feb, 2025

Is there a way to retrieve the Time and Date in Joomla 5.x using the setting for Website Time Zone in Global Configuration?

Is there a {data:} variable to get this. Am using {date:"format"} but that appears to pull the server GMT time which is different that my Global Configuration for Website Time Zone in Joomla)

Thanks,Steve B

Max_admin Max_admin 02 Feb, 2025
Answer

{date.site:}, does that work ?

Can also provide a format: {date.site:d.m.Y}

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
st steveb 02 Feb, 2025

Bada-bing!  That is exactly what I was looking for!  Thanks Max!

I'm assuming there are other "site" variables that can be accessed in a similar manner?

Regards,Steve

This topic is locked and no more replies can be posted.