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

The init() in documentation gives broken date-fns #222

Open
morzel85 opened this issue Aug 17, 2024 · 0 comments
Open

The init() in documentation gives broken date-fns #222

morzel85 opened this issue Aug 17, 2024 · 0 comments

Comments

@morzel85
Copy link

When I run init() in devtools console while using the docs, then date-fns functions become available under _ variable.

Nice, but... it looks like the functions don't have all the features. Maybe it's outdated version? The latest (3.6.0) is selected in the drop-down on top of docs.

Notice how the startOfDay function doesn't understand the ISO string argument:

image

I can run this just fine in my own code:
startOfDay(new Date().toISOString()) -> Sat Aug 17 2024 00:00:00 GMT+0200 (Central European Summer Time)

@kossnocorp kossnocorp transferred this issue from date-fns/date-fns Sep 17, 2024
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

No branches or pull requests

1 participant