mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: display without leading zero (#325)
This commit is contained in:
parent
9e4d270d47
commit
e0765f0ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue