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
Post a Comment