Inaccurately implemented mktime()