DebugScreen: Do not show microseconds

Way too much info
This commit is contained in:
Vishesh Handa
2020-05-17 19:49:51 +02:00
parent a324d0f755
commit 2a84962cb2

View File

@ -70,7 +70,7 @@ class _DebugScreenState extends State<DebugScreen> {
textStyle = textStyle.copyWith(color: _colorForLevel(msg.l));
var dt = DateTime.fromMillisecondsSinceEpoch(msg.t);
var timeStr = dt.toIso8601String().substring(11);
var timeStr = dt.toIso8601String().substring(11, 11 + 8);
var str = ' ' + msg.msg;
if (msg.ex != null) {
@ -83,7 +83,7 @@ class _DebugScreenState extends State<DebugScreen> {
var props = <TextSpan>[];
msg.props?.forEach((key, value) {
var emptySpace = TextSpan(
text: '\n ',
text: '\n ',
style: textStyle.copyWith(fontWeight: FontWeight.bold));
props.add(emptySpace);