Hi Jagget

The time is hard coded in DateChooser as 12:00 and there's no way to change
it.  IMHO this is a bug/enhancment in that (a) it should be consistent with
DateField, and (b) 00:00 is more appropriate given that the time is not
specified by the user.  Please can you submit a bug?

The problem code is at line 695.  To fix this, one way would be to override
DateChooser._updateDatePane and change the dateTime property of every child
control called "day#X" (where X is 0 to 41) and reset the hours to zero.
Alternatively, get the git master and submit a pull request.

John

From:  Jagget <[email protected]>
Reply-To:  qooxdoo Development <[email protected]>
Date:  Tue, 17 Apr 2012 18:00:05 +0400
To:  qooxdoo Development <[email protected]>
Subject:  Re: [qooxdoo-devel] DateChooser vs DateField

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.
----
С уважением,
Jagget


On 17 April 2012 17:51, Christopher Zündorf <[email protected]>
wrote:
> I think it is more a JavaScript issue.
> 
> Have a quick look on :
> http://blog.stevenlevithan.com/archives/date-time-format
> 
> There ,you will find a table with all formatting variables available.
> 
> HTH
> Christopher
> 
> 
> 
> Am 17.04.2012 um 15:46 schrieb Jagget:
> 
>> Sorry, wrong copy. From DateField i get: Wed Apr 18 2012 00:00:00 GMT+0400
>> (MSK)
>> 
>> But in DateField's label i see text "2012/04/18 12:00"
>> ----
>> С уважением,
>> Jagget
>> 
>> 
>> On 17 April 2012 17:44, Jagget <[email protected]> wrote:
>>> If use hh instead HH, I get
>>> DateChooser: Wed Apr 18 2012 12:00:00 GMT+0400 (MSK)
>>> DateField: Wed Apr 18 2012 12:00:00 GMT+0400 (MSK)
>>> 
>>> ----
>>> С уважением,
>>> Jagget
>>> 
>>> 
>>> 
>>> On 17 April 2012 17:34, Christopher Zündorf <[email protected]>
>>> wrote:
>>>> Try this:
>>>> 
>>>>> df.setDateFormat(new qx.util.format.DateFormat('yyyy/MM/dd hh:mm'));
>>>> 
>>>> Use "hh" instead of "HH" in formatting template.
>>>> 
>>>> HTH 
>>>> Christopher
>>>> 
>>>> 
>>>> 
>>>> Am 17.04.2012 um 15:20 schrieb Jagget:
>>>> 
>>>>> And if I set DateFormat in DateField like that
>>>>> df.setDateFormat(new qx.util.format.DateFormat('yyyy/MM/dd HH:mm')); (see
>>>>> http://tinyurl.com/csqjoyc)
>>>>> I recieved
>>>>> "Tue Apr 17 2012 12:00:00 GMT+0400 (MSK)"
>>>>> Why noon? I need midnight!
>>>>> How can I get it?
>>>>> ----
>>>>> С уважением,
>>>>> Jagget
>>>>> 
>>>>> 
>>>>> On 17 April 2012 16:02, Jagget <[email protected]> wrote:
>>>>>> Just a one question. In sample below
>>>>>> 
>>>>>> var button1 = new qx.ui.form.Button("Show choosen");
>>>>>> var dc = new qx.ui.control.DateChooser();
>>>>>> var df = new qx.ui.form.DateField();
>>>>>> 
>>>>>> var doc = this.getRoot();
>>>>>> doc.add(button1,{left:100,top:50});
>>>>>> doc.add(dc,{left:100,top:100});
>>>>>> doc.add(df,{left:100,top:300});
>>>>>> 
>>>>>> button1.addListener("execute", function(e) {
>>>>>> var t = 'DateChooser: ' + dc.getValue().toString() +
>>>>>> '\nDateField: ' + df.getValue().toString();
>>>>>> alert(t);}); (The same in PlayGround http://tinyurl.com/7mup35u)
>>>>>> 
>>>>>> Alert give text like
>>>>>> DateChooser: Tue Apr 17 2012 12:00:00 GMT+0400 (MSK)
>>>>>> DateField: Tue Apr 17 2012 00:00:00 GMT+0400 (MSK)
>>>>>> 
>>>>>> 12:00 and 00:00
>>>>>> 
>>>>>> Why? How can I recieve from DateChooser "Tue Apr 17 2012 00:00:00
>>>>>> GMT+0400 (MSK)"?
>>>>>> 
>>>>>> ----
>>>>>> С уважением,
>>>>>> Jagget
>>>>> 
>>>>> --------------------------------------------------------------------------
>>>>> ----
>>>>> 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
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------------
>>>> ---
>>>> 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
>>>> 
>>> 
>> 
>> 
----------------------------------------------------------------------------->>
-
>> 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
> 
> 
> ------------------------------------------------------------------------------
> 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
> 

----------------------------------------------------------------------------
-- 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

------------------------------------------------------------------------------
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