clear struct tm before use