fixed prev time bug.

fixed prev next day bug.