getOffset(new DateTime()); } else { $gmt_offset_option = get_option('gmt_offset'); $gmt_offset = (int) (3600 * $gmt_offset_option); } return $gmt_offset; } } endif;