fix posix date string

invalid float() can raise ValueError or TypeError