diff options
author | MadCamel <madcamel@gmail.com> | 2009-05-04 11:37:54 -0400 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-04 20:30:03 +0200 |
commit | 1bfe2a3a61e6469db9d3419e6e00d524598fdfed (patch) | |
tree | 610e484fb72339cb914c405c91684f41cbf7c1ba | |
parent | fa939d8917abe20709ad72c40496b083cea5f86f (diff) | |
download | tmwa-1bfe2a3a61e6469db9d3419e6e00d524598fdfed.tar.gz tmwa-1bfe2a3a61e6469db9d3419e6e00d524598fdfed.tar.bz2 tmwa-1bfe2a3a61e6469db9d3419e6e00d524598fdfed.tar.xz tmwa-1bfe2a3a61e6469db9d3419e6e00d524598fdfed.zip |
More UTC fixups
-rw-r--r-- | src/ladmin/ladmin.c | 4 | ||||
-rw-r--r-- | src/login/login.c | 2 | ||||
-rw-r--r-- | src/login_sql/login.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c index 497f3bd..cdf9927 100644 --- a/src/ladmin/ladmin.c +++ b/src/ladmin/ladmin.c @@ -1573,7 +1573,7 @@ int bansetaccountsub(char* name, char* date, char* time) { tmtime->tm_min = minute; tmtime->tm_sec = second; tmtime->tm_isdst = -1; // -1: no winter/summer time modification - ban_until_time = mktime(tmtime); + ban_until_time = timegm(tmtime); if (ban_until_time == -1) { if (defaultlanguage == 'F') { printf("Date incorrecte.\n"); @@ -2934,7 +2934,7 @@ int timesetaccount(char* param) { tmtime->tm_min = minute; tmtime->tm_sec = second; tmtime->tm_isdst = -1; // -1: no winter/summer time modification - connect_until_time = mktime(tmtime); + connect_until_time = timegm(tmtime); if (connect_until_time == -1) { if (defaultlanguage == 'F') { printf("Date incorrecte.\n"); diff --git a/src/login/login.c b/src/login/login.c index 5843c31..e4eb24b 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1520,7 +1520,7 @@ int parse_fromchar(int fd) { tmtime->tm_hour = tmtime->tm_hour + (short)RFIFOW(fd,12); tmtime->tm_min = tmtime->tm_min + (short)RFIFOW(fd,14); tmtime->tm_sec = tmtime->tm_sec + (short)RFIFOW(fd,16); - timestamp = mktime(tmtime); + timestamp = timegm(tmtime); if (timestamp != -1) { if (timestamp <= time(NULL)) timestamp = 0; diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 60a6f68..980e454 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -850,7 +850,7 @@ int parse_fromchar(int fd){ tmtime->tm_hour = tmtime->tm_hour + (short)RFIFOW(fd,12); tmtime->tm_min = tmtime->tm_min + (short)RFIFOW(fd,14); tmtime->tm_sec = tmtime->tm_sec + (short)RFIFOW(fd,16); - timestamp = mktime(tmtime); + timestamp = timegm(tmtime); if (timestamp != -1) { if (timestamp <= time(NULL)) timestamp = 0; |