wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

DateItem calendar picker return the previous day date #590

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
SmartGWT 2.x Nightly Builds 2011-24-05

What steps will reproduce the problem?
1.Try in Showcase Froms\Various control
2.Within Date Control frame edit DateItem with hint "direct date input" using 
calendar picker

What is the expected output?
DateItem contains the selected date

What do you see instead?
DateItem contains the selected date at previous day...

What version of the product are you using?
SmartGWT 2.x Nightly Builds 2011-24-05

Please provide any additional information below.
Up to SmartGWT 2.x Nightly Builds 2011-08-05 was ok, 
SmartGWT 2.x Nightly Builds 2011-23-05
SmartGWT 2.x Nightly Builds 2011-24-05 no.

Thanks for for your kind attention and for the great work.

Original issue reported on code.google.com by vlui...@tiscali.it on 25 May 2011 at 7:18

GoogleCodeExporter commented 9 years ago
Not reproducible.  If you want to make this a valid bug please provide both a 
timezone and exact date chosen which reproduces an issue.

Original comment by smartgwt...@gmail.com on 25 May 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Thanks for response,
my timezone is UTC+01 (Italy), here now is Thursday, May 26, 2011 09:45:00 AM,
in the attached files there is a sample, whitin my project DateItem has the 
same behavior, at moment I cam use SmartGWT 2.x Nightly Builds 2011-08-05 
without problem.
The instance of DateItem has been initialized as follows:

        ...
        protected final DateItem initialDate = new DateItem("initialDate", "Initial Date");
        ....
    DateDisplayFormat dateDisplayFormat = DateDisplayFormat.TOEUROPEANSHORTDATE;

        initialDate.setPickerIconPrompt("Initial Date");
    initialDate.setDisplayFormat(dateDisplayFormat);
    initialDate.setDateFormatter(dateDisplayFormat);
    initialDate.setUseTextField(true);  
    initialDate.setUseMask(true);  

Thanks again for your attention
Best regards

Original comment by vlui...@tiscali.it on 26 May 2011 at 7:16

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry
Nightly Builds 2011-08-05 as Nightly Builds 2011-05-08 (May 08 2011)

Original comment by vlui...@tiscali.it on 26 May 2011 at 9:43

GoogleCodeExporter commented 9 years ago
Sorry, still not reproducible after switching to your timezone and running with 
the latest showcase and picking May 26.  Date is shown correctly as May 26.  

As far as the code sample you've shown, that's not the same as the showcase 
code, and also has a bug (input format needs to be set to match display format).

This bug is still invalid.  To make it valid, show a single file standalone 
test case where you're seeing the issue, and indicate the exact date chosen.

Original comment by smartgwt...@gmail.com on 26 May 2011 at 6:30

GoogleCodeExporter commented 9 years ago
I download the nightly 2.5 on 3rd June 2011.
The date picker was returned the date as "06/03/2011" when I selection the 
today's date(2nd june 2011).
The date picker is returning always "selected date from the picker + 1 day".

Original comment by chandus1...@gmail.com on 2 Jun 2011 at 9:46

GoogleCodeExporter commented 9 years ago
Once again, create a standalone test case demonstrating the issue and indicate 
timezone and date chosen.  There's no need for further indications that this 
problem can be made to happen with unspecified settings (which may be wrong, or 
the behavior expected due to timezone settings).

Original comment by smartgwt...@gmail.com on 2 Jun 2011 at 4:37

GoogleCodeExporter commented 9 years ago
A user on the forums reported the same problem but provided a standalone test 
case that isolated the cause.  This is now fixed, grab the next nightly build.

Original comment by smartgwt...@gmail.com on 2 Jun 2011 at 11:44

GoogleCodeExporter commented 9 years ago
Thanks now it works very fine (nightly build 2011-06-03).

Original comment by vlui...@tiscali.it on 3 Jun 2011 at 2:12

GoogleCodeExporter commented 9 years ago
I downloaded the nightly build on 2011-06-08. It is working fine.
Thanking you.

Original comment by chandus1...@gmail.com on 8 Jun 2011 at 5:54

GoogleCodeExporter commented 9 years ago
I have the same problem with SmartClient 7.2 RC
How shoud I process to solve this problem

Thanks

Original comment by *kamel.f...@margoconseil.com on 21 Jun 2011 at 10:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have this problem with latest smartGwt 2.5 version. Problem is not exactly as 
above on the pictures. Displaying date is ok. But when getting date from 
component programatically, or sendind date via datasource. Then the date is one 
day earlier. Maybe this help to reproduce UC

Original comment by mateusz....@javart.eu on 17 Sep 2011 at 11:35