[wp-hackers] Possible bug in the function human_time_diff()
speedboxer at gmail.com
Fri Mar 27 00:03:52 GMT 2009
On Thu, Mar 26, 2009 at 4:41 AM, Chetan Kunte <ckunte at gmail.com> wrote:
> To add to my previous observation, and going by the logic, I need to
> set my location time to match my server time, or else
> human_time_diff() shows time erroneously for the day it is published.
Try using date_default_timezone_set('Etc/GMT+1'); before
human_time_diff(). It's PHP 5.2.x only though.
More information about the wp-hackers