[eluser]qwang[/eluser]
thanks Jeroen
i checked again the config.php and found that as your post said, i missed to change the server's config.php
so now() returns gmt date
i have another question as belows
echo "GMT Time:" . gmdate('Y-m-d H:i
', time());
echo "<br />";
$now = time();
$system_time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now));
echo "GMT Time 2:" . gmdate('Y-m-d H:i
', $system_time);
echo "<br />";
i found that the two GMT time returned by gmdate() is different, and don't know why
ci use the second method, can you give me some explanation, thank you