Re: DateTextField and DatePicker returning wrong date

2010-05-06 Thread taygolf

no that is not the issue although I did see that issue and I am happy that it
is fixed.

My issue is that dealing with the boolean applyTimeZoneDifference for
PatternDateConverter. It doesn't matter if I set applyTimeZoneDifference to
true or false. The difference is still applied. I would like to not apply
the difference but it does not seem to be working.

I wanted to make sure I was not doing something wrong before I officially
called it a bug.

Has anyone else had issues with applyTimeZoneDifference when they try and
set it to false?

T
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTextField-and-DatePicker-returning-wrong-date-tp2126267p2132868.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DateTextField and DatePicker returning wrong date

2010-05-06 Thread Jeremy Thomerson
If you think it's a bug, create a quickstart and attach it to JIRA.  Is it
similar to this? https://issues.apache.org/jira/browse/WICKET-2767

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, May 5, 2010 at 12:35 PM, taygolf  wrote:

>
> anyone have any help here? I really think this is a bug inside wicket but I
> may be doing something wrong. Any opinions would be greatly appreciated
>
> T
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/DateTextField-and-DatePicker-returning-wrong-date-tp2126267p2131360.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: DateTextField and DatePicker returning wrong date

2010-05-05 Thread taygolf

anyone have any help here? I really think this is a bug inside wicket but I
may be doing something wrong. Any opinions would be greatly appreciated

T
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTextField-and-DatePicker-returning-wrong-date-tp2126267p2131360.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DateTextField and DatePicker returning wrong date

2010-05-04 Thread taygolf

Hey guys,

I guess I am confused on how DateTextField and DatePicker work

Here is my code

DateTextField dateTextField = new DateTextField("textField", new
PropertyModel(this, "value"), new PatternDateConverter("MM/dd/",
false));
DatePicker dp = new DatePicker(){
public boolean enableMonthYearSelection(){
return true;
}
};
dateTextField.add(dp);

What is happening is that value is being set to server time and the actual
date that I have selected is being displayed on the screen. So if I select
05/20/2010 that is what shows up in the dateTextField on the screen but the
actual value that is going to the server is 05/19/2010 because the server is
GMT and I am Central.

I thought by setting the timezone difference to false I would get the actual
date selected which is what I want but that does not seem to be the case. I
get the same value on the screen and in the server no matter if the value is
set to true or false.

Am I doing something wrong or is this a bug?

I am using wicket 1.4.8

Thanks

T
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTextField-and-DatePicker-returning-wrong-date-tp2126267p2126267.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org