On Tue, Apr 17, 2012 at 10:00, Jagget <[email protected]> wrote:

> I want to see and to get the same Date and Time. But I see 12:00 and get
> 00:00. Or I see 00:00 and get 12:00. And I want to see time in DateField.
> Or I want to get time 00:00, when I use DateChooser.getValue(). At list one
> from options.
>

I think the problem is that DateChooser assigns, explicitly, a time of
12:00 to each date, whereas DateField assigns a time of 00:00. Look at the
source for DateChooser, line 695, where it assigns 12:00 to helpDate, which
is assigned as the time for the day label, on line 736.

I believe this is a bug in DateChooser -- it should be using 00:00 instead
of 12:00 -- but changing it will be a backwards compatibility problem. It
probably needs to be fixed by adding a property for the time to assign for
each day, and default it to 12:00 for backwards compatibility. You could
post a bugzilla issue with this if you'd like.

In the interim, to solve your problem, subclass DateChooser and override
the _updateDatePane method. Copy the text of that method from DateChooser,
and then change line 695. Definitely not an elegant solution, but it'll do
for now.

Cheers,

Derrell
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to