Use date() instead of getTime()