diff --git a/webrtc/base/httpcommon.cc b/webrtc/base/httpcommon.cc index cff954cca..138ca42ff 100644 --- a/webrtc/base/httpcommon.cc +++ b/webrtc/base/httpcommon.cc @@ -387,6 +387,10 @@ bool HttpDateToSeconds(const std::string& date, time_t* seconds) { tm *tm_for_timezone = localtime(&gmt); *seconds = gmt + tm_for_timezone->tm_gmtoff; #else +#if _MSC_VER >= 1900 + long timezone = 0; + _get_timezone(&timezone); +#endif *seconds = gmt - timezone; #endif return true;