--- libelwix/src/time.c 2013/03/07 15:47:07 1.1.2.3 +++ libelwix/src/time.c 2013/03/07 15:49:27 1.1.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: time.c,v 1.1.2.3 2013/03/07 15:47:07 misho Exp $ +* $Id: time.c,v 1.1.2.4 2013/03/07 15:49:27 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -135,7 +135,7 @@ search4wday(char * __restrict psWDay, int * __restrict * time_Parse() - Parse and make unix time from standart time strings ... * * @csTime = Time string - * return: =0 error or !=0 converted time + * return: =-1 error or !=-1 converted time */ time_t time_Parse(const char *csTime) @@ -255,8 +255,5 @@ time_Parse(const char *csTime) else if (tm.tm_year < 70) tm.tm_year += 100; - if ((tim = timegm(&tm)) == (time_t) -1) - return 0; - else - return tim; + return timegm(&tm); }