Exosphere is a set of small, modular, self-hostable community tools built on the AT Protocol. app.exosphere.site
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: dates

Hugo fb13c094 b7d16c90

+4 -1
+2 -1
packages/client/src/format.ts
··· 4 4 }; 5 5 6 6 export function formatDate(iso: string, opts?: Intl.DateTimeFormatOptions): string { 7 - return new Date(iso + "Z").toLocaleDateString(undefined, opts ?? defaultOptions); 7 + const date = iso.endsWith("Z") ? new Date(iso) : new Date(iso + "Z"); 8 + return date.toLocaleDateString(undefined, opts ?? defaultOptions); 8 9 }
+2
packages/core/src/pds.ts
··· 10 10 11 11 export function tidToDate(tid: string): string { 12 12 const t = TID.fromStr(tid); 13 + console.log(tid); 14 + console.log(t); 13 15 return new Date(Math.floor(t.timestamp() / 1000)).toISOString(); 14 16 } 15 17