PHP date_default_timezone_set() and time()
Does date_default_timezone_set()
function affect the value of time()
? Or开发者_如何学JAVA does it just affect the date()
function?
time()
is timezone independent. See this comment on PHP's time() documentation page:
The function time() returns always timestamp that is timezone independent (=UTC).
精彩评论