PHP getdate not returning the correct time? -


this question has answer here:

i have timezone set africa/johannesburg (+2gmt) in php.ini. getdate says hour 0. hour 3 , if somehow still stayed in utc, 11 am. changed pc time , it's still not working. else cause this?

use date_default_timezone_set

for example:

date_default_timezone_set('africa/johannesburg'); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -