The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

This ends up printing out '2011-02-16 19:00:00'
The date I should be getting should be something in the region of '2009-01-02'
This method is basically trying to use strtotime to increase the given date by the given number of hours.

This one's getting a bit closer with a result of '2009-03-06 23:00:00'
I've converted the hours passed into seconds and added that to the timestamp, then I've converted it into a date format.

I did notice that if I change the '$datefrom' to 0, then the result is actually '1901-12-13 20:00:00' instead of '1900-01-01' which it should still be as it's just changing the date from a timestamp and back to a date format.