fixed bug of getting date of integer timestamp