PHP ini date.timezone? Server or client time zone?

I know this may sound like a silly question, but I did not find in the PHP documentation somewhere they were loud and clear this.

I have a web application.

The users of my web applications are in Europe , but the server running the web application is in the USA .

How do I set the date.timezone php ini directive?

I guess where the server is if it is in New York: date.timezone = "America / New_York"

But am I right?

+5
source share
3 answers

According to what I read here on SO, the answers are:

  • PHP date.timezone ini "UTC" (.. 0)
  • PHP (UTC) Unix ()
  • Javacscript UTC Unix , :

    (<? php echo DATE_TIME_SERVER_UTC;? > 1000);

+2

, UTC script http://pl.php.net/manual/en/function.date-default-timezone-set.php Europe/sth , GeoIP JavaScript ( )

+2

All Articles