Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Duration.toNow() bugs out on certain timestamps or Date objects #292

Closed
1 of 2 tasks
Dolliwyx opened this issue May 3, 2018 · 0 comments
Closed
1 of 2 tasks

Duration.toNow() bugs out on certain timestamps or Date objects #292

Dolliwyx opened this issue May 3, 2018 · 0 comments

Comments

@Dolliwyx
Copy link
Contributor

Dolliwyx commented May 3, 2018

Describe the issue

When Duration#toNow is used on Date objects or timestamps earlier than Date.now(), it returns seconds always.

Code or steps to reproduce

  1. Put a timestamp higher than Date.now() on the first parameter of Duration#toNow()

Expected an actual behaviour

Return the actual Duration, returned seconds instead.

Further details

  • discord.js version: master branch; commit: 745669a
  • node.js version: 10.0.0
  • Klasa version: master branch; commit: f58681d
  • I have modified core files.
  • I have tested the issue on latest master. Commit hash:
@bdistin bdistin closed this as completed in 4e261ce May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant