Replace date() with time()