summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c2
1 files changed, 1 insertions, 1 deletions
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;