fixed date() warning in PHP5.3