New answers tagged

0

your post is very old, but in case someone gets the same issue. Even if your server is set to date_default_timezone_set('America/New_york'); When Wordpress runs, it rewrite the config to date_default_timezone_set('UTC') to store datetime in UTC, which is the Universal Time without offset. Usually, when I compare a date to now, I use the variable $_SERVER['...


Top 50 recent answers are included