mirror of https://github.com/vector-im/riot-web
Fix overzealous code deletion
Signed-off-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
01b7d7bb7c
commit
e058dd58e5
|
@ -55,6 +55,7 @@ function twelveHourTime(date) {
|
|||
let hours = date.getHours() % 12;
|
||||
const minutes = pad(date.getMinutes());
|
||||
const ampm = date.getHours() >= 12 ? 'PM' : 'AM';
|
||||
hours = hours ? hours : 12; // convert 0 -> 12
|
||||
return `${hours}:${minutes}${ampm}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue