From 3b8372f4fa9b8c7efc3f51a9c1c25ae2c55153b6 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 18 Jan 2018 15:55:58 -0500 Subject: [PATCH] Avoid use of undeclared to_utc_time. * Fixes https://github.com/HowardHinnant/date/issues/289 --- include/date/tz.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/date/tz.h b/include/date/tz.h index 2040739..c3dbf84 100644 --- a/include/date/tz.h +++ b/include/date/tz.h @@ -1963,7 +1963,7 @@ from_stream(std::basic_istream& 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())