date_format() error in error logs

the code I posted was from the error message. it’s not supposed to be actual code.

the second snippet you posted should work, but since I don’t know which line #903 is, I can’t tell what you did wrong there, only why PHP complained about it.

edit: the format() method only accepts the format string (unlike the date_format() function, which is just a wrapper)