You have to set the type to Date and the value will be saved as a Date/Calendar
Cheers - Philipp On 07.12.2010, at 11:54, Unger, Richard wrote: > > Hi Grégory! > > Thanks, issue now posted to JIRA. > > http://jira.magnolia-cms.com/browse/MAGNOLIA-3454 > > Regards from Vienna, > > Richard Unger > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Grégory Joseph > Gesendet: Freitag, 03. Dezember 2010 16:23 > An: Magnolia User-List > Betreff: Re: [magnolia-user] Problem with DateControl > > > Hey Richard, > > Which version are you using ? Is this something you've seen working before ? > Either way, it's probably worth an issue on Jira yes. > > -g > > On 03 Dec 2010, at 15:16, Unger, Richard wrote: > >> Hi Magnolians! >> >> We're seeing the following error (see attached stacktrace) when using a >> date-control (DialogDate) for one of our dialogs. >> >> Basically, we can add a new paragraph of our type, set the date in the date >> field, the date is saved to JCR, but the next time we want to edit the >> paragraph, we get a blank dialog, and see the attached exception in the >> background. >> >> It seems that DialogDate. doBeforeDrawHtml() calls getDate() on the NodeData >> for the property, which is implemented in DefaultNodeData, and in turn calls >> javax.jcr.Property.getDate(), which can't parse the format that was saved. >> >> · Am I doing something stupid? >> · Is it maybe locale-related? >> · Is this a known bug, or should I file in JIRA? >> >> If it's a bug, it is pretty bad, since it makes the date-control unuseable. >> >> Input would be greatly appreciated! >> >> Thanks! >> >> Regards from Vienna, >> >> Richard >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> <trace.txt> > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
