Don't call mktime(3) twice on the same struct tm