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

fix: Added missing case for minutes #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jnfrati
Copy link

@jnfrati jnfrati commented Feb 25, 2022

Motivation

When using the timeFromNow function, the unitOfTime property would display "seconds" although the amount of seconds is to big. This PR fixes that by adding an extra unitOfTime value "minutes".

@cferdinandi
Copy link
Owner

Thanks for this! I think units of time should be set to minutes instead of hours?

tfn.unitOfTime = 'hours';

@jnfrati
Copy link
Author

jnfrati commented Jun 22, 2022

@cferdinandi Sorry for taking so long to fix this! Completely forgot about the PR.
Already made the change! Let me know if you catch anything else!

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

Successfully merging this pull request may close these issues.

2 participants