Fix current_zone for SLES

* Fixes #708
* Patch submitted by JaroslawMelzer
This commit is contained in:
Howard Hinnant 2021-10-15 09:03:33 -04:00
parent 2709deddd3
commit d9049ee697

View File

@ -3919,7 +3919,7 @@ tzdb::current_zone() const
auto p = result.find("ZONE=\"");
if (p != std::string::npos)
{
result.erase(p, p+6);
result.erase(0, p+6);
result.erase(result.rfind('"'));
return locate_zone(result);
}