Fix POSIX date handling