Skip to content

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

@morzel85

Description

@morzel85

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions