How do I show datetime in the same time zone as user using PHP or javascript?
Posted
by user198729
on Stack Overflow
See other posts from Stack Overflow
or by user198729
Published on 2010-05-29T09:13:34Z
Indexed on
2010/05/29
9:22 UTC
Read the original article
Hit count: 214
Suppose now I've got the datetime to show like this:
2010-05-29 15:32:35
The the corresponding time zone can be get by date_default_timezone_get
,
how do I output the result in the same time zone as user's browser so that users don't get confused?
© Stack Overflow or respective owner