What's your PHP version? The code relies on __toString() method of the DateTime object to return a textual representation of the date. We can get it explicitly as well. But would like to know more about your PHP environment so we can make any other changes as well.
Anyone else with prioritized list of feature requests? :)