fix tm_to_time logic for number of days in november

report/patch by Hiltjo Posthuma <hiltjo@codemadness.org>
Merge branch 'master' of git://git.musl-libc.org/musl into g_hack