[wp-hackers] 1.5.1 ?

Mark Jaquith mark.wordpress at txfx.net
Tue Mar 22 02:57:45 GMT 2005


Robert Deaton wrote:

>Also, the recent bug brought up on the testers list with future posts
>always showing as scheduled 8 or more hours in the future, I haven't
>had time to look at the human_time_diff function to see where the bug
>might be though.
>
My patch fixes it by subtracting the GMT offset from the first thing 
passed to the human_time_diff() function (not in the function, in 
/wp-admin/index.php where it passes parameters to it).
http://mosquito.wordpress.org/view.php?id=1075

It isn't making sense to me... by subtracting time from the "now" time, 
shouldn't that make the time between "now" and the future date bigger?  
Adding the offset back in (or switching to 0 the GMT switch in 
current_time()) makes my offset go from 5 hours to 10 hours (off by 
double my GMT offset).  Anyway... I don't have to understand it. :-)

Copy-pasting follow-up on [wp-testers]


More information about the wp-hackers mailing list