dal manuale
string date ( string $format [, int $timestamp ] )
Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given. In other words, timestamp is optional and defaults to the value of time().
quindi se non gli passi il timestamp prende l'ora del server, anche se mi sembra strano che non gli passi il timestamp dato che prendi le date da un db