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

Bug: Incorrect human-readable dates for unix timestamps #224

Open
johngribbin opened this issue Jul 22, 2024 · 0 comments
Open

Bug: Incorrect human-readable dates for unix timestamps #224

johngribbin opened this issue Jul 22, 2024 · 0 comments

Comments

@johngribbin
Copy link

There seems to be an issue with the conversion of Unix timestamps to human-readable dates in the should_monitor_onchain_funds object returned by the clboss-status call. The now and disable_until values do not seem to correspond correctly with their now_human and disable_until_human counterparts.

Example response:

{
    "status": "ignore",
    "now": 1721640000,
    "now_human": "UTC 2024-07-22 08:29:41.632",
    "disable_until": 1721690000,
    "disable_until_human": "UTC 2024-07-23 00:21:44.860",
    "comment": "`clboss-notice-onchain` to resume managing onchain funds."
}

Issues:

  • The now value of 1721640000 converts to UTC time of Mon Jul 22 2024 09:20:00.
  • The disable_until value of 1721690000 converts to UTC time of Mon Jul 22 2024 23:13:20.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant