Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUT-06: Mint should say what the current time is #138

Closed
callebtc opened this issue Jun 20, 2024 · 3 comments · Fixed by #159
Closed

NUT-06: Mint should say what the current time is #138

callebtc opened this issue Jun 20, 2024 · 3 comments · Fixed by #159
Labels
enhancement New feature or request needs implementation Needs a reference implementation

Comments

@callebtc
Copy link
Contributor

In order for users to be sure that their local clock agrees with the mint's clock, the mint should publish its current time in the info response.

@callebtc callebtc added enhancement New feature or request needs implementation Needs a reference implementation labels Jun 20, 2024
@prusnak
Copy link
Collaborator

prusnak commented Sep 2, 2024

we should either use Unix timestamp or format returned by new Date().toISOString() which is2012-04-23T18:25:43.511Z (where the time used is UTC), rationale: https://stackoverflow.com/questions/10286204/what-is-the-right-json-date-format

@thesimplekid
Copy link
Collaborator

I would prefer the unix timestamp. Its what we use in other places.

@prusnak
Copy link
Collaborator

prusnak commented Sep 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs implementation Needs a reference implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants