#5284 closed defect (fixed)
dojo.clone fails with dates
Reported by: | guest | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.0.2 |
Component: | Core | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
dojo.clone fails when cloning dates it simply returns the current date.
dojo.clone(new Date(2005,5,5)).toString() will return same as (new Date()).toString()
Need to test for Date as a special case.
Fix included.
schallm
Attachments (2)
Change History (6)
Changed 13 years ago by
Attachment: | lang.patch added |
---|
Changed 13 years ago by
Attachment: | test_lang.patch added |
---|
comment:1 Changed 13 years ago by
Component: | General → Date |
---|---|
Milestone: | → 1.0.2 |
Owner: | changed from anonymous to Adam Peller |
Pls assign a component. It helps get things on the radar :) (our bad for not keeping on top of the anonymous bugs) Will look at for 1.0.2. Thanks.
comment:2 Changed 13 years ago by
Component: | Date → Core |
---|---|
Owner: | changed from Adam Peller to Eugene Lazutkin |
severity: | critical → normal |
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.
As of posting, doh will incorrectly show this as passing as assertEqual always returns true for dates. doh needs to be fixed first.