datetimeunixunix-timestampepoch

What's the difference between 1/1/1970 and 12/31/1969 UNIX epoch invalid dates?


I know that when there's an invalid UNIX date, the default time is Epoch, but I see that some servers' default is 12/31/1969 while others servers' default is 1/1/1970. What's the difference between these two?


Solution

  • It's because of the server's time zone. For example, the Unix epoch is defined as 1/1/1970 00:00:00 UTC. In GMT-8 time zone, this would be 12/31/1969 4:00:00 PM.

    Those are two ways of viewing the same moment, the same point on the timeline.