mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Fix parse of second offset in posix time zone
This commit is contained in:
parent
a2fdba1adc
commit
7d811743e0
@ -195,7 +195,10 @@ time_zone::time_zone(const detail::string_t& s)
|
|||||||
if (i != s.size())
|
if (i != s.size())
|
||||||
{
|
{
|
||||||
if (s[i] != ',')
|
if (s[i] != ',')
|
||||||
|
{
|
||||||
i = read_signed_time(s, i, save_);
|
i = read_signed_time(s, i, save_);
|
||||||
|
save_ = -save_ - offset_;
|
||||||
|
}
|
||||||
if (i != s.size())
|
if (i != s.size())
|
||||||
{
|
{
|
||||||
if (s[i] != ',')
|
if (s[i] != ',')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user