current_time now uses GMT.
git-svn-id: https://develop.svn.wordpress.org/trunk@931 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
54139eb9dc
commit
539371d0b5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user