diff options
-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; |