diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c index 8406bfe5f..db46279d3 100644 --- a/src/hlua_fcn.c +++ b/src/hlua_fcn.c @@ -287,7 +287,7 @@ static int hlua_parse_date(lua_State *L, int (*fcn)(const char *, int, struct tm * the timezone from the broken-down time, it must be fixed * after the conversion. */ - time = timegm(&tm); + time = my_timegm(&tm); if (time == -1) { lua_pushnil(L); return 1;