-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use an external
luxon
package to relative time (#869)
Closes #864 Closes #196 Some time ago we discussed the use of an external library to show relative time. So let's use [luxon](https://moment.github.io/luxon/api-docs/index.html#datetimetorelative) to solve the problem described in #864. > If a deposit was made at 12:00 and it's now 12:59 the counter shows the deposit was made 59 minutes ago. But if it's 13:01, the counter shows that the deposit was made 2 hours ago. This problem does not exist with the external library. https://deploy-preview-869--acre-dapp-testnet.netlify.app/dashboard ![Screenshot 2024-11-15 at 15 33 42](https://github.com/user-attachments/assets/3eea77d5-1a8f-4180-b7d6-dfdd73886d38) https://bitcoin.test.acre.fi/dashboard ![Screenshot 2024-11-15 at 15 33 49](https://github.com/user-attachments/assets/2d69044c-b24e-4a86-9548-e6160bad2047)
- Loading branch information
Showing
3 changed files
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.