id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 29063 function current_time( $type, $gmt = 0 ) don't return GMT if 'Y-m-d H:i:s' is pass as type pbearne chriscct7 "Hi Guys Have been trying to write unit tests for the function current_time() in the functions.php It works OK if the server/php timezone is GMT but if I run date_default_timezone_set('America/Los_Angeles'); and change the timezone it fails to pass the unit tests So here are the unit tests and patch that seems to fix it. It needs better eyes than mine to check this :-) as this a core function Paul " defect (bug) closed normal Date/Time 3.8 normal duplicate has-patch has-unit-tests bulk-reopened