# | 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[45]; |
19 | > | char then[61]; |
20 | ||
21 | < | strftime(then, 45, "%A %B %e, %Y %l:%M:%S %p %Z", &when); |
21 | > | strftime(then, 61, "%A, %B %e, %Y %l:%M:%S %p %Z", &when); |
22 | ||
23 | this->since = then; | |
24 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |