This patch looks OK to me, modulo the spelling fix. In reviewing this patch I noticed a longstanding bug in mktime that hasn't been reported. I just now reported it here: https://sourceware.org/bugzilla/show_bug.cgi?id=23789 Fixing that bug may affect the patch.