forked from HowardHinnant/date
Fix current_zone for SLES
* Fixes #708 * Patch submitted by JaroslawMelzer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user