Change getTime to floor