Possible Duplicate:
Guessing User's TimeZone in PHP
How can i get my system current time zone in php thanks in advance
I tried this code
echo date_default_timezone_get();
echo date('H:i:s');
date_default_timezone_set('GMT');
echo date_default_timezone_get();
echo date('H:i:s');
but i got
**UTC
07:51:52
GMT
07:51:52**
also i tried date(‘Z’);
i got
0
but my time zone is asia/kolkatta
You should send all time information as UTC, then if the local machine has its system clock set correctly it can be converted to a local time. There are some functions here for converting to and from UTC on a local machine in javascript. Your server should only work in UTC.