Do not change the default timezone from UTC in WordPress
I discovered something a bit surprising about WordPress related to timezones: WordPress explicitly sets and expects the default timezone to be UTCÂ (in settings.php) and the date/time functions sometimes rely on the fact that the default timezone is UTC. For instance if you do date_default_timezone_set(get_option(‘timezone_string’)) and then later try to get a GMT timestamp from get_post_time() … Continue reading Do not change the default timezone from UTC in WordPress
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed