Page 1 of 1

getting user set timezone

Posted: Thu Jun 12, 2025 8:02 am
by arfa
Is there a standard call to get the user set timezone?
eg Pacific/Auckland (GMT+12:00)

I figure it is saved in there somewhere - just how to get it out?

thx - Kusalo

Re: getting user set timezone

Posted: Fri Jun 27, 2025 12:59 pm
by zacharielle
I don't think this is a user related data, rather a site config one? If this is what you are looking for there is the timezone() function from Site class you can call to get the info:

Code: Select all

<?php echo $site->timezone(); ?>

Re: getting user set timezone

Posted: Tue Jul 01, 2025 3:56 am
by arfa
As is often the case the language, the jargon, the question needs aligning. Yes, that does the trick. Thank you.