mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
Windows temporal bug fix
This commit is contained in:
parent
65cbb5613c
commit
5c4823ed80
1 changed files with 2 additions and 2 deletions
|
|
@ -42,9 +42,9 @@ def format_relative_time(iso_timestamp: str) -> str:
|
|||
elif days < 7:
|
||||
return f"{int(days)}d ago"
|
||||
elif dt.year == now.year:
|
||||
return dt.strftime("%-d %b")
|
||||
return f"{dt.day} {dt.strftime('%b')}"
|
||||
else:
|
||||
return dt.strftime("%-d %b, %Y")
|
||||
return f"{dt.day} {dt.strftime('%b')}, {dt.year}"
|
||||
except Exception:
|
||||
return ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue