add space in AM/PM time

pull/3303/head
Paul Arguillère 2024-03-27 19:08:39 +01:00
parent 40a29528d2
commit 13b82670a3
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ function formatDateTime(date, dateFormat, time24, showSeconds) {
var ampm = (h >= 12 ? 'PM' : 'AM');
var h_ampm = h % 12;
h_ampm = (h_ampm == 0 ? 12 : h_ampm);
formattedDateTime.time = `${h_ampm}:${mm}${showSeconds ? `:${ss}` : ''}${ampm}`;
formattedDateTime.time = `${h_ampm}:${mm}${showSeconds ? `:${ss}` : ''} ${ampm}`;
}
return formattedDateTime;