Skip to content

Commit 91d4ef3

Browse files
chrisbobbegnprice
authored andcommitted
msglist [nfc]: Pull out a _timeFormatWithSeconds helper
1 parent b7146a7 commit 91d4ef3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,8 @@ enum MessageTimestampStyle {
20122012
}
20132013
}
20142014
static final _timeFormat = DateFormat('h:mm aa');
2015-
static final _lightboxFormat = DateFormat.yMMMd().add_Hms();
2015+
static final _timeFormatWithSeconds = DateFormat('Hms');
2016+
static final _lightboxFormat = DateFormat.yMMMd().addPattern(_timeFormatWithSeconds.pattern);
20162017
static final _fullFormat = DateFormat.yMMMd().add_jm();
20172018

20182019
/// Format a [Message.timestamp] for this mode.

0 commit comments

Comments
 (0)