Forums

Pulling Joomla Web TimeZone using Shortcodes

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 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.
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

You need to login to be able to post a reply.