mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:13:07 +08:00
[date] Fix failures in UWP with latest commit (#5932)
This commit is contained in:
parent
4d224838df
commit
e33ffb6f90
@ -1,5 +1,5 @@
|
||||
Source: date
|
||||
Version: 2.4.1
|
||||
Version: 9dc96fd
|
||||
Description: A date and time library based on the C++11/14/17 <chrono> header
|
||||
|
||||
Feature: remote-api
|
||||
|
@ -1,36 +0,0 @@
|
||||
diff --git a/include/date/tz.h b/include/date/tz.h
|
||||
index 280a598..f9b5a35 100644
|
||||
--- a/include/date/tz.h
|
||||
+++ b/include/date/tz.h
|
||||
@@ -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())
|
||||
@@ -2197,7 +2197,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
||||
return is;
|
||||
}
|
||||
|
||||
-#if !defined(_MSC_VER) || _MSC_VER > 1912
|
||||
+#if !defined(_MSC_VER) || _MSC_VER > 1913
|
||||
|
||||
// clock_time_conversion
|
||||
|
||||
@@ -2471,7 +2471,7 @@ clock_cast(const std::chrono::time_point<SrcClock, Duration>& tp)
|
||||
return clock_cast_detail::cc_impl<DstClock>(tp, &tp);
|
||||
}
|
||||
|
||||
-#endif // !defined(_MSC_VER) || _MSC_VER > 1912
|
||||
+#endif // !defined(_MSC_VER) || _MSC_VER > 1913
|
||||
|
||||
// Deprecated API
|
||||
|
||||
@@ -2579,3 +2579,4 @@ to_gps_time(const tai_time<Duration>& t)
|
||||
} // namespace date
|
||||
|
||||
#endif // TZ_H
|
||||
+
|
@ -10,16 +10,11 @@ endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO HowardHinnant/date
|
||||
REF v2.4.1
|
||||
SHA512 ce7d1c4518558d3690b3a33cd3da1066b43a5f641282c331c60be73e9b010227d4998bca5f34694215ae52f6514a2f5eccd6b0a5ee3dcf8cef2f2d1644c8beee
|
||||
REF 9dc96fd9b5e4e1e7885aa80dc24a3ceb407c3730
|
||||
SHA512 1acb78f1ae7f5b1278a9e034fa5ccbb64643ad381ef9bd76bf42fb04d714c6742f2129b6892024cd98bb925e1a6136337fccb636e3f991b428be1ed05ab8901e
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix-date.patch
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
set(HAS_REMOTE_API 0)
|
||||
|
Loading…
Reference in New Issue
Block a user