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

[Bug] Calender dropdown doesn't give current date #80

Open
mohitkh7 opened this issue Nov 27, 2018 · 3 comments
Open

[Bug] Calender dropdown doesn't give current date #80

mohitkh7 opened this issue Nov 27, 2018 · 3 comments
Labels

Comments

@mohitkh7
Copy link

While adding new withdraw when we change date a calendar dropdown pops up. It is expected it will show current date so that user can choose a date close to it. But it shows May 0033 calendar.

image

@simhnna
Copy link
Contributor

simhnna commented Nov 27, 2018

I can't replicate it. What is your locale and what browser language do you have set? It should preselect the current day...

Can you maybe wait a day and see what is shown tomorrow?

@mohitkh7
Copy link
Author

mohitkh7 commented Dec 1, 2018

I tried it again it is giving same error.

System Details -

  • Browser - Version 70.0.3538.77 (Official Build) (64-bit)
  • Browser Language - English (United Kingdom)
  • System Operating System - Ubuntu 16.04
  • Locale - en_in (English India)

Initially the date is in this format: 01/12/2018
On Clicking it Changes into: 7-06-10
And Ideally It should be: 2018-12-01

Link to drive containing video demonstration of error

@simhnna simhnna added the bug label Dec 2, 2018
@simhnna
Copy link
Contributor

simhnna commented Dec 2, 2018

It's because django parses the date to the user locale but the datepicker always uses the same. So we either need to tell the datepicker what format is currently in use or just use one format

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

Successfully merging a pull request may close this issue.

2 participants