File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,9 @@ void ui_message_handlert::xml_ui_msg(
244
244
245
245
result.new_element (" text" ).data =msg1;
246
246
result.set_attribute (" type" , type);
247
+ const std::string timestamp = time ->stamp ();
248
+ if (!timestamp.empty ())
249
+ result.set_attribute (" timestamp" , timestamp);
247
250
248
251
std::cout << result;
249
252
std::cout << ' \n ' ;
@@ -263,6 +266,9 @@ void ui_message_handlert::json_ui_msg(
263
266
264
267
result[" messageType" ] = json_stringt (type);
265
268
result[" messageText" ] = json_stringt (msg1);
269
+ const std::string timestamp = time ->stamp ();
270
+ if (!timestamp.empty ())
271
+ result[" timestamp" ] = json_stringt (timestamp);
266
272
267
273
// By convention a leading comma is created by every new array entry.
268
274
// The first entry is generated in the constructor and does not have
You can’t perform that action at this time.
0 commit comments