How does php time() function works -


how php time() work in following case:

user posting in database , posting stamp added time().

but how compensate time zones? if 2 users eu , usa posting @ same time, posting stamp same?

the whole point time()-method stores in same timezone, 1 server configured with.

if did not this, impossible know when happened.

if want display datetime timezones, can output timestamp server, use javascript or calculate clients timezone offset , add/substract hours time.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -