R
R
Robot2015-11-17 17:20:34
PHP
Robot, 2015-11-17 17:20:34

Unixtime dates what's wrong?

strtotime("1970-01-01"); // -10800
strtotime("1970-01-01 00:00"); // -10800
strtotime("1970-01-01 03:00"); // 0

In general, I expected to see zeros, but the page shows me -10800 i.e. 3 hours before the start of the countdown. Or is there some kind of bug with time zones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2015-11-17
@iam_not_a_robot

This is not a bug! This is a feature! It's all about time zones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question