Fix date() warning on PHP > 5.1