Jul 07
If My server is in US and i’m from India
Solution is quite simple:
In PHP after mysql_connect and mysql_select_db functions just execute:
SET time_zone = ‘kN:00′
where
k = {+, -}
N = [1-24]
so for example SET time_zone = ‘+5:30′ [need to change this value according to your country]
after that NOW() will return proper time.
Recent Comments