| 611 | } |
| 612 | |
| 613 | char* strptime(const char* buf, const char* fmt, struct tm* tm) |
| 614 | { |
| 615 | char* ret; |
| 616 | int gmt; |
| 617 | |
| 618 | gmt = 0; |
| 619 | ret = _strptime(buf, fmt, tm, &gmt); |
| 620 | if (ret && gmt) { |
| 621 | time_t t = timegm(tm); |
| 622 | localtime_r(&t, tm); |
| 623 | } |
| 624 | |
| 625 | return (ret); |
| 626 | } |
| 627 | #endif //_win32_ |
no test coverage detected