support for ISO date formatted string
Closed this issue · 1 comments
maladon commented
My model value is a properly formatted JS ISO string. The value isn't set on the component when the component is rendered.
In datepicker-support.js, line 128 is a switch statement. Because my value is a string the value being set is at the end of the switch is a null.
I edited my local copy and add the following case:
case 'string':
dates = [self._resetTime(new Date(value))];
Admittedly it'll fail if the format is wrong, but for just getting it working it's OK because I know my test data is OK. The trouble is that even this isn't working. The widget doesn't have a value set.
maladon commented
Nevermind...forgot to break.
sigh