From f7dd13c338e108ad900ebd9bc4d708abdff6b12f Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 25 Feb 2004 00:00:38 +0000 Subject: [PATCH] current_time now uses GMT. git-svn-id: http://svn.automattic.com/wordpress/trunk@931 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6ebcfc608f..2efbb7ef46 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -53,10 +53,10 @@ function current_time($type) { $time_difference = get_settings('time_difference'); switch ($type) { case 'mysql': - return date('Y-m-d H:i:s', (time() + ($time_difference * 3600) ) ); + return gmdate('Y-m-d H:i:s'); break; case 'timestamp': - return (time() + ($time_difference * 3600) ); + return time(); break; } }