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

Add diffForHumans function #53

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

Conversation

jonnymccullagh
Copy link

I needed a diffForHumans function that would use the user timezone, so I added this function to my local version.
Created PR in case you want to amend and merge.
Feel free to close if not appropriate.

@jamesmills
Copy link
Owner

Hi @jonnymccullagh

Thanks for your contribution.

I would like to add this but I think we should do it slightly differently.

I think we should have your function call the convertToLocal function with an additional parameter.

I'll add it and you can let me know what you think.

@jamesmills jamesmills added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Feb 18, 2021
@jamesmills
Copy link
Owner

No sure what I've managed to do here but I've added the my proposed refactor here

#63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants