File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
exporters/elasticsearch/src Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,6 @@ void ElasticSearchRecordable::SetTimestamp(
8888{
8989 const std::chrono::system_clock::time_point timePoint{timestamp};
9090
91- // If built with with at least cpp 20 then use std::format
92- // Otherwise use the old style to format the timestamp in UTC
93- // @see https://en.cppreference.com/w/cpp/feature_test#cpp_lib_format
94- #if defined(__cpp_lib_format) && __cpp_lib_format >= 201907
95- const std::string dateStr = std::format (" {:%FT%T%Ez}" , timePoint);
96- #else
9791 std::time_t time = std::chrono::system_clock::to_time_t (timePoint);
9892 std::tm tm = *std::gmtime (&time);
9993 auto microseconds =
@@ -108,7 +102,6 @@ void ElasticSearchRecordable::SetTimestamp(
108102 static_cast <long >(microseconds.count ()));
109103
110104 const std::string dateStr (bufferDate);
111- #endif
112105
113106 json_[" @timestamp" ] = dateStr;
114107}
You can’t perform that action at this time.
0 commit comments