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

convert formatISO to TypeScript #2593

Merged
merged 6 commits into from
Nov 28, 2021
Merged

Conversation

fturmel
Copy link
Member

@fturmel fturmel commented Aug 14, 2021

Closes date-fns/date-fns-typescriptify#37

There's another PR that's almost a year old and wasn't merged (#2098)... I figured it was easy enough to get this done in light of #2592.

@joonmo-you
Copy link

The docs for fomaatISO should be updated as soon as possible. The returned value is not what the documentation's saying.

@fturmel
Copy link
Member Author

fturmel commented Oct 8, 2021

@joonmo-you Where is the discrepancy in the docs?

@joonmo-you
Copy link

@fturmel Sorry for leading you to misunderstanding what I am tryin to say. I just want to suggest that the examples on the docs deal with the UTC timezone only, which causes my team to be confused with whether formatISO always return UTC timezone or not. I think it would be probably better to change UTC ➡️ local timezone to make it clear.

@fturmel
Copy link
Member Author

fturmel commented Oct 8, 2021

@joonmo-you Oh I see what you're saying. You are right, this could be improved. I'll work on a revision and add it to this PR.

Copy link
Contributor

@tan75 tan75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!

@tan75 tan75 mentioned this pull request Nov 26, 2021
16 tasks
@leshakoss leshakoss merged commit 1f4e494 into date-fns:master Nov 28, 2021
@fturmel fturmel deleted the PR/ts-formatISO branch November 29, 2021 00:41
tan75 pushed a commit to janziemba/date-fns that referenced this pull request Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate formatISO function
4 participants