Remove space between time and AM/PM
Part of addressing vector-im/riot-web#4046 Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
0b7f947d8e
commit
d446410bdf
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ function twelveHourTime(date) {
|
||||||
const minutes = pad(date.getMinutes());
|
const minutes = pad(date.getMinutes());
|
||||||
const ampm = date.getHours() >= 12 ? 'PM' : 'AM';
|
const ampm = date.getHours() >= 12 ? 'PM' : 'AM';
|
||||||
hours = pad(hours ? hours : 12);
|
hours = pad(hours ? hours : 12);
|
||||||
return `${hours}:${minutes} ${ampm}`;
|
return `${hours}:${minutes}${ampm}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue