#1008 closed defect (fixed)
dropdowndatepicker can't handle other date formats
Reported by: | guest | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I have a <div dojoType="dropdowndatepicker" inputName="mydate" date="04/25/1969" dateformat="%d/%m/%Y"> in my webpage, but first of all if I don't specify the date in the US format it shows up incorrect. But even when I do format it (the date parameter) in US format, and it initially shows up correct (being %d/%m/%Y format), whenever I change the date to for example 24/04/1969, and press the icon, the show calendar jumps to a completely different date in december 1970.
Attachments (4)
Change History (14)
comment:1 Changed 15 years ago by
Milestone: | → 0.4 |
---|---|
Owner: | changed from anonymous to dylan |
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
Changed 15 years ago by
Attachment: | t1008.patch added |
---|
Changed 15 years ago by
Attachment: | test_dddp.html added |
---|
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 15 years ago by
did anyone actually commit your patch?
if not, please reopen this bug
comment:5 Changed 14 years ago by
Priority: | high → normal |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
It looks like it was incorrectly closed. I am reopening it.
comment:6 Changed 14 years ago by
Owner: | changed from dylan to Eugene Lazutkin |
---|---|
Status: | reopened → new |
comment:7 Changed 14 years ago by
Formatting is probably best separated from the widget module. I'm actually (yes, finally :) working on this in dojo.i18n.datetime, and hope to have it ready soon, like in a week or two. You may assign this to me, if you like.
comment:8 Changed 14 years ago by
Owner: | changed from Eugene Lazutkin to Adam Peller |
---|
Changed 14 years ago by
Attachment: | dddp-i18n-r5597.patch added |
---|
Use dojo.date.format/dojo.date.parse to render and accept dates from the input widget in various formats
Changed 14 years ago by
Attachment: | test_DropdownDatePicker_localize.html added |
---|
new tests for localization
comment:9 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This bug is caused by the DropdownDatePicker? get the date string regardless the format.
Attached t1008.patch:
attached test_dddp.html:
The core function of this patch is fromFormatedString(string, format), it will construct a Data object based upon the string and format. Currently, support %m, %d, %Y, -- that is good enough for this widget. I would like to merge this functionality into dojo.date if required.