Remove seconds from message dates
Makes them easier to read
This commit is contained in:
parent
78119d1ef0
commit
66129a9eb2
|
@ -8,7 +8,7 @@ Row {
|
|||
spacing: theme.spacing / 1.25
|
||||
|
||||
readonly property string eventText: Utils.processedEventText(model)
|
||||
readonly property string eventTime: Utils.formatTime(model.date)
|
||||
readonly property string eventTime: Utils.formatTime(model.date, false)
|
||||
readonly property int eventTimeSpaces: 2
|
||||
|
||||
readonly property string hoveredLink:
|
||||
|
@ -113,9 +113,10 @@ Row {
|
|||
text: theme.chat.message.styleInclude +
|
||||
eventContent.eventText +
|
||||
// time
|
||||
" ".repeat(eventTimeSpaces) +
|
||||
" ".repeat(eventTimeSpaces) +
|
||||
"<font size=" + theme.fontSize.small +
|
||||
"px color=" + theme.chat.message.date + ">" +
|
||||
"px color=" + theme.chat.message.date +
|
||||
' style="vertical-align: middle">' +
|
||||
eventTime +
|
||||
"</font>" +
|
||||
// local echo icon
|
||||
|
|
|
@ -156,7 +156,7 @@ function formatTime(time, seconds=true) {
|
|||
seconds ? Locale.LongFormat : Locale.NarrowFormat
|
||||
).replace(/\./g, ":").replace(/ t$/, "")
|
||||
// en_DK.UTF-8 locale wrongfully gives "." separators;
|
||||
// remove the timezone at the end
|
||||
// also remove the timezone at the end
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user