PHP & MySQL time zone
Posted: Thu Jun 12, 2008 10:35 pm
Hey guys,
My servers are allocated in USA. Normally when i save time using MySQL NOW() function, time saved on DB in USA time. At the time of retrieving time from PHP i get USA time. how can i change it to Sri Lankan time zone which is equals to Sri Lanka current time?
Please give me some code to do this.
Thak guys
Chathu
My servers are allocated in USA. Normally when i save time using MySQL NOW() function, time saved on DB in USA time. At the time of retrieving time from PHP i get USA time. how can i change it to Sri Lankan time zone which is equals to Sri Lanka current time?
Please give me some code to do this.
Thak guys
Chathu