Timezone Issue

3 views
Skip to first unread message

Pradip Jadhav

unread,
Jun 11, 2009, 5:39:03 AM6/11/09
to phpcamp
Hello Friends,

I am developing timesheet application. And users outside india are
going enter there timesheet data into this application.

Now what i have to do is i have to change timezone depending upon his/
her country. I have kept user's timezone in my database.

If i directly make entry in php.ini file and restarts the server, it
works fine....!

See what i to do is, on login page i am getting user's timezone and i
want to change timezone of server respective to user's timezone.

I tried this by calling ini_set('date.timezone','Asia/Calcutta') and
also tried date_default_timezone_set("Asia/Calcutta");, But it will
not work because after this changes i didn't restarted the server.

If u have another solution of this please help to solve out this
problem.

Regards,
Pradip Jadhav

Parag Arora

unread,
Jun 11, 2009, 6:19:12 AM6/11/09
to php...@googlegroups.com
Hello Pradip

You should not change INI file as it gets activated only once the server is started in case there is no server refresh. You can instead define a parameter timezone_difference which will be added to current time user.
You can use GMT as standard.

Parag
Co-Founder, WebIgniters  ( http://www.webigniters.com )
Reply all
Reply to author
Forward
0 new messages