Skip to content

Commit

Permalink
Merge branch 'main' into use-nostrify
Browse files Browse the repository at this point in the history
  • Loading branch information
shuesken committed Aug 10, 2024
2 parents e520279 + e453908 commit b04385b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b04385b

Please sign in to comment.