Fix CefZipReader::GetFileLastModified (issue #1899)

This commit is contained in:
Marshall Greenblatt 2017-02-15 18:44:42 -05:00
parent c82ef82c21
commit b7556bdddf
1 changed files with 2 additions and 1 deletions

View File

@ -265,8 +265,9 @@ bool CefZipReaderImpl::GetFileInfo() {
time.tm_hour = file_info.tmu_date.tm_hour;
time.tm_mday = file_info.tmu_date.tm_mday;
time.tm_mon = file_info.tmu_date.tm_mon;
time.tm_year = file_info.tmu_date.tm_year;
time.tm_year = file_info.tmu_date.tm_year - 1900; // Years since 1900.
filemodified_ = mktime(&time);
DCHECK_NE(filemodified_, (size_t)-1);
return true;
}