Fix stupid time parsing error.

This commit is contained in:
Adam Sutton 2012-05-21 12:28:52 +01:00
parent 6cb00158c6
commit 1f3eada50c

View file

@ -21,6 +21,7 @@ static int _pyepg_parse_time ( const char *str, time_t *out )
{
int ret = 0;
struct tm tm;
tm.tm_isdst = 0;
if ( strptime(str, "%F %T %z", &tm) != NULL ) {
*out = mktime(&tm);
ret = 1;