Hey guys, i'm using this script (http://snipplr.com/view/4912/relative-time/) to create relative times using PHP and timestamps stored in my database. I'm using the standard format for storing datetime (eg 2010-05-07 20:26:17) and it works fine with any timestamps i create.
But for some reason when i try to use a timestamp stored in wordpress's wp_posts table, the function fails and returns "January 1, 1970". I can't see any difference in the format of wordpress' timestamps and my own. And i can use wordpress' data fine using the date() function to present a formatted date, just not a relative time using my own function.