Minimum requirement: PHP5

Here’s a trick if you are using CMS Made Simple Calendar module and having a problem with your server site’s time setting.

Open the–> function.displaycalendar.php
It is inside of your http://mysite.com/modules/Calendar/function.displaycalendar.php

Use this code and place it on top after the tag <?php

date_default_timezone_set('Pacific/Guam');

Somewhere like this

?php

date_default_timezone_set('Pacific/Guam');

function DisplayCalendar(&amp;$module, $id, &amp;$parameters, $returnid)
{
	global $gCms;
	$detailpage = '';
	if (isset($parameters['detailpage']))
	{

save it and you’re done!

And you may check this link for different timezone setting

Advertisements