Add time zone parsing support for 'Z' (UTC indicator)

This commit is contained in:
Dimitri Schoolwerth
2017-06-20 15:17:05 +04:00
committed by Dimitri Schoolwerth
parent 51cfb64ecb
commit a3a4e7c638
2 changed files with 11 additions and 0 deletions

View File

@@ -1482,6 +1482,14 @@ wxDateTime::ParseFormat(const wxString& date,
if ( input == end )
return false;
if ( *input == wxS('Z') )
{
// Time is in UTC.
++input;
haveTimeZone = true;
break;
}
// and then check that it's either plus or minus sign
bool minusFound;
if ( *input == wxT('-') )