Fix stupid time parsing error.
This commit is contained in:
parent
6cb00158c6
commit
1f3eada50c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue