ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/Host.cpp
(Generate patch)

Comparing HostStatus/Host.cpp (file contents):
Revision 36 by Douglas Thrift, 2003-11-15T02:21:22-08:00 vs.
Revision 37 by Douglas Thrift, 2003-11-15T15:12:56-08:00

# Line 12 | Line 12 | void Host::setSince(const string& since)
12          
13          strptime(since.c_str(), "%m/%d/%Y %H:%M:%S %Z", &when);
14  
15 <        time_t time = mktime(&when);
15 >        time_t time = timegm(&when);
16          
17 <        localtime_r(&time, &when);
17 >        memcpy(&when, localtime(&time), sizeof(struct tm));
18  
19          char then[61];
20  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines