purescript-signal icon indicating copy to clipboard operation
purescript-signal copied to clipboard

"now" won't return current Unix time if perf presented

Open chekoopa opened this issue 6 years ago • 0 comments

I've tried using Signal.Time.every in a Elm-like fashion (sending messages with a Unix timestamp applied), but instead it returns time from the session (kinda) start, because it relies on performance and process, using Date.now as a fallback only.

The closest workaround is copying everyP and re-implementing now in own foreign module.

But either or both:

  • the documentation really should note that moment (from which JS object it takes current time)
  • every instance for Unix time dispatching should be presented

chekoopa avatar May 30 '19 09:05 chekoopa