mirror of https://github.com/espruino/BangleApps
add space in AM/PM time
parent
40a29528d2
commit
13b82670a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue