fix: display without leading zero (#325)

This commit is contained in:
DecafDev 2024-09-09 23:55:13 -06:00 committed by GitHub
parent 9e4d270d47
commit e0765f0ac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ export const formatAsBearTimeString = (milliseconds: number) => {
return `${diffInHours} hours ago`;
}
if (diffInDays === 1) {
return `Yesterday at ${time.format("hh:mm A")}`;
return `Yesterday at ${time.format("h:mm A")}`;
}
if (time.year() === now.year()) {
return time.format("MMMM D");