# | Line 17 | Line 17 | void Host::setSince(const string& since) | |
---|---|---|
17 | #else | |
18 | strptime(since.c_str(), "%m/%d/%Y %H:%M:%S", &when); | |
19 | #endif | |
20 | < | |
21 | < | time_t time = timegm(&when); |
22 | < | |
23 | < | memcpy(&when, localtime(&time), sizeof(struct tm)); |
20 | > | mktime(&when); |
21 | ||
22 | char then[61]; | |
23 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |