Details
Description
Graeme:
I believe we use DateFormat.SHORT, can't recall exactly, but .. we should probably support parsing the date back in the same format it was sent. I would raise a JIRA
Cheers
On Sun, Apr 6, 2008 at 12:06 PM, Dierk König <dierk.koenig@canoo.com> wrote:
> I wonder about the line
> <releaseDate>2007-11-27 11:52:53.447</releaseDate> though. How is
> the date format interpreted?
> Is there a conventional format?
> In fact, the example doesn't work for me and I have to do the date
> parsing manually like:
>
> def saveRest = {
> params.myobj.mydate = new MyDateFormat().parse(params.myobj.mydate)
> def myobj = new MyClass(params.myobj)
>
> otherwise I get null for the mydate.
BTW: the docs also need to be more specific about this.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.0.3 [ 14124 ] | |
| Fix Version/s | 1.0.4 [ 14156 ] | |
| Description |
Graeme: I believe we use DateFormat.SHORT, can't recall exactly, but .. we should probably support parsing the date back in the same format it was sent. I would raise a JIRA Cheers On Sun, Apr 6, 2008 at 12:06 PM, Dierk König <dierk.koenig@canoo.com> wrote: > I wonder about the line > <releaseDate>2007-11-27 11:52:53.447</releaseDate> though. How is > the date format interpreted? > Is there a conventional format? > In fact, the example doesn't work for me and I have to do the date > parsing manually like: > > def saveRest = { > params.myobj.mydate = new MyDateFormat().parse(params.myobj.mydate) > def myobj = new MyClass(params.myobj) > > otherwise I get null for the mydate. BTW: the docs also need to be more specific about this. |
Graeme: I believe we use DateFormat.SHORT, can't recall exactly, but .. we should probably support parsing the date back in the same format it was sent. I would raise a JIRA Cheers On Sun, Apr 6, 2008 at 12:06 PM, Dierk König <dierk.koenig@canoo.com> wrote: > I wonder about the line > <releaseDate>2007-11-27 11:52:53.447</releaseDate> though. How is > the date format interpreted? > Is there a conventional format? > In fact, the example doesn't work for me and I have to do the date > parsing manually like: > > def saveRest = { > params.myobj.mydate = new MyDateFormat().parse(params.myobj.mydate) > def myobj = new MyClass(params.myobj) > > otherwise I get null for the mydate. BTW: the docs also need to be more specific about this. |
| Fix Version/s | 1.0.4 [ 14156 ] | |
| Fix Version/s | 1.1 [ 13674 ] |
| Fix Version/s | 1.1-beta2 [ 14752 ] | |
| Fix Version/s | 1.1-beta1 [ 13674 ] |
| Fix Version/s | 1.1-beta3 [ 14824 ] | |
| Fix Version/s | 1.1-beta2 [ 14752 ] |
| Fix Version/s | 1.1-beta3 [ 14824 ] | |
| Fix Version/s | 1.1-RC1 [ 14929 ] |
| Fix Version/s | 1.1-RC1 [ 14929 ] | |
| Fix Version/s | 1.2 [ 14155 ] |
| Fix Version/s | 1.2-M1 [ 14155 ] | |
| Fix Version/s | 1.2-M2 [ 15425 ] |
| Fix Version/s | 1.2-M2 [ 15425 ] | |
| Fix Version/s | 1.2-M3 [ 15547 ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Workflow | jira [ 29877 ] | Grails [ 42844 ] |
| Workflow | Grails [ 42844 ] | Copy of Grails [ 50297 ] |
| Workflow | Copy of Grails [ 50297 ] | Grails [ 57707 ] |
| Workflow | Grails [ 57707 ] | Grails2 [ 65285 ] |
| Workflow | Grails2 [ 65285 ] | jira [ 76082 ] |
| Workflow | jira [ 76082 ] | Grails2 [ 84804 ] |
| Workflow | Grails2 [ 84804 ] | jira [ 93231 ] |
| Workflow | jira [ 93231 ] | Grails2 [ 101398 ] |
This is being improved in 1.1