Fix UTC issue when getting day from date.