Changeset 45 in Main for trunk/Server


Ignore:
Timestamp:
Sep 18, 2024, 6:51:17 PM (2 months ago)
Author:
Nishi
Message:

some fix for old windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r43 r45  
    436436                                strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
    437437#ifdef __MINGW32__
    438                                 cmtime = _mkgmtime(&tm);
     438                                time_t t = 0;
     439                                struct tm* btm = localtime(&t);
     440                                cmtime = mktime(&tm);
     441                                cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
    439442#else
    440443                                cmtime = timegm(&tm);
Note: See TracChangeset for help on using the changeset viewer.