which part is causing the problem? Isolate the steps and echo or print out the variables. You need to know which elements are causing problems before you start making wholesale changes.
diafol
Rhod Gilbert Fan (ardav)
7,755 posts since Oct 2006
Reputation Points: 1,168
Solved Threads: 1,074
kkeith29
Nearly a Posting Virtuoso
1,353 posts since Jun 2007
Reputation Points: 235
Solved Threads: 195
are you just trying to 'correct' a server datetime to the user's local time?
diafol
Rhod Gilbert Fan (ardav)
7,755 posts since Oct 2006
Reputation Points: 1,168
Solved Threads: 1,074
Are you getting any error or incorrect date?
if it is incorrect date then setting the default timezone as below will solve ur problem
date_default_timezone_set('Asia/Calcutta');
danishbacker
Junior Poster in Training
97 posts since Apr 2008
Reputation Points: 10
Solved Threads: 7
Also paste the code for "timezone.php"
danishbacker
Junior Poster in Training
97 posts since Apr 2008
Reputation Points: 10
Solved Threads: 7