// the spec was correct, construct the date from the values we found
Set(day, mon, year, hour, min, sec);
- MakeFromTimezone(TimeZone((wxDateTime_t)(offset*SEC_PER_MIN)));
+ MakeFromTimezone(TimeZone::Make(offset*SEC_PER_MIN));
return p;
}
}
else // not a valid month name
{
- wday = GetWeekDayFromName(token, Name_Full | Name_Abbr);
- if ( wday != Inv_WeekDay )
+ WeekDay wday2 = GetWeekDayFromName(token, Name_Full | Name_Abbr);
+ if ( wday2 != Inv_WeekDay )
{
// a week day
if ( haveWDay )
break;
}
+ wday = wday2;
+
haveWDay = true;
}
else // not a valid weekday name