3709. [port] Use built-in versions of strptime() and timegm() on all platforms to avoid portability issues. [RT #35183]