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 03:25
#2354
Udar Gromov
Keymaster
I started to dig dipper. Function depends on GMT offset returned by get_option(‘gmt_offset’). When called from bbPress this function returns nothing. As a result get_date_from_gmt() always returns GMT time.
Here is a chart:
function get_date_from_gmt() is in wp-includesformatting.php
function get_option() is in wp-includesfunctions.php