views:

91

answers:

2

I want to ask about UNIX time, Does UNIX time record Timezone?

I moved my hosting from Chicago/America to JST.

The problem is that my whole MySQL database has records of UNIX time (Chicago/America timezone)

I have a PHP code to show the time ago (ex 3days ago, yesterday, etc) When I move to the new server it says tomorrow

To avoid this tomorrow, is it ok to make the server down for one day in order to synchronize with the current server's timezone?

I worry that the UNIX time doesnt only record the date and time, but also the timezone...

I can set the PHP.ini timezone, but will it slowdown my Apache?

Thank You

+1  A: 

'unix time' is the number of milliseconds from the epoch, which is standard for all of our planet Earth. the timezone is then used as a modifier to that time.

Ben Reisner
+3  A: 

"0" in UNIX time was 1st January 1970 in UTC time. Every UNIX time is the seconds from that date, time, and timezone.

Coronatus