Ver originaldate_default_timezone_set("Europe/Madrid"); setlocale(LC_TIME, "spanish"); $Time = strftime("%Y-%m-%d").",".strftime("%H:%M:%S"); echo $Time;