silverstrike icon indicating copy to clipboard operation
silverstrike copied to clipboard

[Bug] Calender dropdown doesn't give current date

Open mohitkh7 opened this issue 6 years ago • 3 comments

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

mohitkh7 avatar Nov 27 '18 06:11 mohitkh7

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?

simhnna avatar Nov 27 '18 07:11 simhnna

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

mohitkh7 avatar Dec 01 '18 07:12 mohitkh7

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

simhnna avatar Dec 02 '18 18:12 simhnna