Skip to content

DatePicker using UK format reverts to US format #436

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

Open
mrwrighty opened this issue Jan 8, 2020 · 0 comments
Open

DatePicker using UK format reverts to US format #436

mrwrighty opened this issue Jan 8, 2020 · 0 comments

Comments

@mrwrighty
Copy link

I have a DatePicker defined as <datetime:DatePickerField row="7" col="1" hint="tap to select" locale="en_GB" dateFormat="dd/MM/yyyy" id="veddate" class="body1"/>

I set the date text to display my current date in UK format dd/MM/yyyy and the picker date to the same and this is taken from an SQlite DB where date is stored as a string. However, the dates are getting transformed to US format MM/dd/yyyy when writing the date back as a string.

For example date string in local SQLite DB is 07/01/2021. Setting DatePicker text shows 01/07/2021 even though I have set the format as dd/MM/yyyy.

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