fixed date utils for php 5.3.