PHP function showing wrong time in WordPress
date() is a PHP function depending on your server settings. You can go around that by using the WordPress function: current_time( ‘Y-m-d H:i:s’ ); This function takes the settings in wp-admin into account.