Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does UNIX time record Timezone?

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 doesn't only record the date and time, but also the timezone...

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

like image 545
bbnn Avatar asked Jul 21 '26 11:07

bbnn


1 Answers

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

like image 168
Amy B Avatar answered Jul 24 '26 00:07

Amy B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!