fix mktime error check. refs #1691