Seconds Since the Unix Epoch Bug?
-
The
[wpdts-custom format="U"]
produces the wrong value. For example, it produces 1631485440, when it should produce 1631510640. The “U” parameter is for the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). This value seems to be off by -25200 seconds (-7 hours), the local time zone offset. In other words, the 0 time would have been January 1 1970 00:00:00 PDT (Pacific Daylight Time, America/Los Angeles), which is incorrect.There are many ways to get the Unix Epoch so this isn’t a show stopper, but if you need accurate time, this won’t do it.
Can anyone tell me if this is a bug or was it done on purpose for some reason I’m unaware of? Thanks.
- The topic ‘Seconds Since the Unix Epoch Bug?’ is closed to new replies.