Before doing anything, I recommend to check if the current time is giving a "real life" date, because the servers normally had their own timezone.
To force normal values I used date_default_timezone_set before any date function