You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Don't pad 12h timestamps
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -55,7 +55,6 @@ function twelveHourTime(date) {
|
||||
let hours = date.getHours() % 12;
|
||||
const minutes = pad(date.getMinutes());
|
||||
const ampm = date.getHours() >= 12 ? 'PM' : 'AM';
|
||||
hours = pad(hours ? hours : 12);
|
||||
return `${hours}:${minutes}${ampm}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user