diff --git a/README.md b/README.md index bb2c51f..5ff0acd 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ This is running at [notes.trustroots.org](https://notes.trustroots.org/). And it - `yarn start` - Open http://localhost:1234 +It seems that newer node versions [don't work](https://github.com/Trustroots/nostr-map/issues/21) don't work. You may have to run this to use node v18: +- `nvm install` +- `nvm use` ## Ideas somewhat concrete: diff --git a/src/map.ts b/src/map.ts index 392fd9c..d23d8d2 100644 --- a/src/map.ts +++ b/src/map.ts @@ -120,6 +120,8 @@ function generateDatetimeFromNote(note: Note): string { const { createdAt } = note; const date = new Date(createdAt * 1000); + return date.toLocaleString(); + const month = ("0" + (date.getMonth() + 1)).slice(-2); // Months are zero-based, so add 1 const day = ("0" + date.getDate()).slice(-2);