Home › Forums › Inside › This WordPress Site › Function get_date_from_gmt() returns GMT time, if called from bbPress page › Re: Function get_date_from_gmt() returns GMT time, if called from bbPress page
2011/03/09 at 04:45
#2355
Deprecated: Function seems_utf8 is deprecated since version 6.9.0! Use wp_is_valid_utf8() instead. in /var/www/DWCTEST/wp-includes/functions.php on line 6131
Deprecated: Function seems_utf8 is deprecated since version 6.9.0! Use wp_is_valid_utf8() instead. in /var/www/DWCTEST/wp-includes/functions.php on line 6131
Keymaster
A TEMP solution for this problem is to hard-coded your offset fix in
wp-includesformatting.php:
// ***** 2011-03-08 TU 23:09 Use -5, if no offset returned *****
// $string_localtime = gmdate($format, $string_time +
get_option('gmt_offset')*3600);
$myOffset = (get_option('gmt_offset'))? get_option('gmt_offset'): -5;
$string_localtime = gmdate($format, $string_time + $myOffset*3600);