I'm setting up cron jobs from my plugin and I need to format the date in the server's time zone. It looks like Craft is overriding the timezone set in php.ini because PHP's date_default_timezone_get()
always returns UTC. Is there another way to get the actual timezone set on the server?
Add a comment
|
1 Answer
Use ini_get('date.timezone')
.