Fix unsupported datetime operation on Windows.