Avoid use of undeclared to_utc_time.

* Fixes https://github.com/HowardHinnant/date/issues/289
This commit is contained in:
Howard Hinnant
2018-01-18 15:55:58 -05:00
parent 6941691de4
commit 3b8372f4fa

View File

@ -1963,7 +1963,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
bool is_60_sec = fds.tod.seconds() == seconds{60};
if (is_60_sec)
fds.tod.seconds() -= seconds{1};
auto tmp = to_utc_time(sys_days(fds.ymd) - *offptr + fds.tod.to_duration());
auto tmp = utc_clock::from_sys(sys_days(fds.ymd) - *offptr + fds.tod.to_duration());
if (is_60_sec)
tmp += seconds{1};
if (is_60_sec != is_leap_second(tmp).first || !fds.tod.in_conventional_range())