[jboss-user] [JBoss Seam] - s:convertDateTime subtract 1 day

rengar do-not-reply at jboss.com
Wed Mar 7 06:03:51 EST 2007


I I put in code:


  | <s:convertDateTime pattern="dd/MM/yyyy"/>
  | 

And in page put in input text "01/02/2007". It convert it to "31/01/2007".

If i use custom DateConverter:


  | <f:converter converterId="com.minalink.reservas.converters.DateConverter" />
  | 


  | package com.minalink.reservas.converters;
  | 
  | import javax.faces.convert.DateTimeConverter;
  | 
  | public class DateConverter extends DateTimeConverter {
  |     
  |     public static final String pattern = "dd/MM/yyyy";
  |     
  |     public DateConverter(){
  |         this.setPattern(pattern);
  |     }
  |     
  | }
  | 

This works fine.

Is a bug?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025736#4025736

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025736



More information about the jboss-user mailing list