fix test failure when daylight saving time to normal time

Original test only works when time switch from normal time to daylight saving time.