silverstrike
silverstrike copied to clipboard
[Bug] Calender dropdown doesn't give current date
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.
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?
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
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