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

date / datetime formatting #447

Open
clach04 opened this issue Jan 29, 2024 · 3 comments
Open

date / datetime formatting #447

clach04 opened this issue Jan 29, 2024 · 3 comments
Labels

Comments

@clach04
Copy link

clach04 commented Jan 29, 2024

With:

{
    "value": {
        "datetime": "2000-01-01 00:00:00", 
        "date": "2000-01-01"
    }, 
    "form": [
        {
            "type": "date", 
            "key": "date"
        }, 
        {
            "type": "datetime-local", 
            "key": "datetime"
        }
    ], 
    "schema": {
        "datetime": {
            "type": "string", 
            "title": "datetime"
        }, 
        "date": {
            "type": "string", 
            "title": "date"
        }
    }
}

in Playground https://jsonform.github.io/jsonform/playground/index.html I'm seeing US date format in the form, not the ISO/ANSI format in the json. On submission it is correct but on screen it's not. Is there any control over this?

@sdetweil
Copy link
Contributor

I do not see anything in particular about iso,
but this about html5 field types

Screenshot_20240128_191743_Chrome

@sdetweil
Copy link
Contributor

also
Screenshot_20240128_192433_Chrome

@clach04
Copy link
Author

clach04 commented Jan 29, 2024

Yes, those are the type I'm using. I scanned the js code briefly and couldn't see how it worked, it was like magic! I wondered if this was a bootstrap (v3) thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants