[ 
http://www.stripesframework.org/jira/browse/STS-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11449#action_11449
 ] 

Magnus Jäderberg commented on STS-590:
--------------------------------------

Just an addition to the issue.
Using the formatPattern="long" also disregards the hours, minutes and seconds.

Regards,
Magnus Jäderberg

> stripes:input with formatType="datetime" and custom formatPattern fails
> -----------------------------------------------------------------------
>
>                 Key: STS-590
>                 URL: http://www.stripesframework.org/jira/browse/STS-590
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5
>         Environment: Windows XP (dev), Linux Debian (live)
>            Reporter: Magnus Jäderberg
>            Priority: Minor
>
> I'm trying to use the stripes:input tag like this:
> <stripes:text formatType="datetime" formatPattern="yyyy-MM-dd HH:mm" 
> name="events[${loop.index}].date"/>
> When the form is displayed with data from the database everything is fine.
> When I submit the form it removes the HH:mm part of the formatPattern.
> I was unsure if my AJAX stuff was causing this so I did a debug output in the 
> ActionBean and it outputs:
> 15:47:05,593 DEBUG ManualEDIActionBean:55 -           DEBUG :: 2008-01-01 
> 10:00
> Which seems to be correct, But in the database the field value is now: 
> 2008-01-01 00:00
> Thanks for an awesome framework =)
> Regards,
> Magnus Jäderberg

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to