fixed: in TimeZone::SetTzDst() was used operator && instead of ||

This commit is contained in:
Tomasz Sowa 2021-02-17 18:36:50 +01:00
parent 5fe843d76b
commit 541597f355
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ bool TimeZone::SetTzDst(PT::Space & year)
int year_int = Toi(year.name);
if( year_int < 1970 && year_int > 10000 )
if( year_int < 1970 || year_int > 10000 )
return false;
dst.has_dst = year.Bool(L"has_dst", false);