File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ inline auto localtime(std::time_t time) -> std::tm {
574
574
#if FMT_USE_LOCAL_TIME
575
575
template <typename Duration ,
576
576
FMT_ENABLE_IF (detail::has_current_zone<Duration >())>
577
- inline auto localtime(std::chrono::local_time<Duration > time) -> std::tm {
577
+ FMT_DEPRECATED inline auto localtime(std::chrono::local_time<Duration > time) -> std::tm {
578
578
using namespace std ::chrono;
579
579
using namespace fmt_detail ;
580
580
return localtime (detail::to_time_t (current_zone ()->to_sys <Duration >(time )));
Original file line number Diff line number Diff line change @@ -352,12 +352,6 @@ TEST(chrono_test, system_clock_time_point) {
352
352
353
353
#if FMT_USE_LOCAL_TIME
354
354
355
- TEST (chrono_test, localtime) {
356
- auto t = std::time (nullptr );
357
- auto tm = *std::localtime (&t);
358
- EXPECT_TRUE (equal (tm , fmt::localtime (t)));
359
- }
360
-
361
355
template <typename Duration >
362
356
auto strftime_full_local (std::chrono::local_time<Duration > tp) -> std::string {
363
357
auto t = std::chrono::system_clock::to_time_t (
You can’t perform that action at this time.
0 commit comments