Jump to content

Date prob


tauchai83

Recommended Posts

I realize you're in Asia, but presumably you speak English, and can type it properly. The chatspeak is annoying enough to make me not want to help you.

If you were running it on your computer, your computer was the 'server', so it used your time. If you're using a new server, it will use that time. To display the time of a user's computer, you should use a client-side language such as Javascript, or let the user set their timezone and calculate it that way. PHP has no way of telling what the client-computer's settings are.
Link to comment
https://forums.phpfreaks.com/topic/35893-date-prob/#findComment-170218
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.