mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
current_time now uses GMT.
git-svn-id: http://svn.automattic.com/wordpress/trunk@931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
672ded938d
commit
f7dd13c338
@ -53,10 +53,10 @@ function current_time($type) {
|
|||||||
$time_difference = get_settings('time_difference');
|
$time_difference = get_settings('time_difference');
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
return date('Y-m-d H:i:s', (time() + ($time_difference * 3600) ) );
|
return gmdate('Y-m-d H:i:s');
|
||||||
break;
|
break;
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
return (time() + ($time_difference * 3600) );
|
return time();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user