mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 17:58:03 +08:00
Fix current_zone for SLES
* Fixes #708 * Patch submitted by JaroslawMelzer
This commit is contained in:
parent
2709deddd3
commit
d9049ee697
@ -3919,7 +3919,7 @@ tzdb::current_zone() const
|
|||||||
auto p = result.find("ZONE=\"");
|
auto p = result.find("ZONE=\"");
|
||||||
if (p != std::string::npos)
|
if (p != std::string::npos)
|
||||||
{
|
{
|
||||||
result.erase(p, p+6);
|
result.erase(0, p+6);
|
||||||
result.erase(result.rfind('"'));
|
result.erase(result.rfind('"'));
|
||||||
return locate_zone(result);
|
return locate_zone(result);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user