Noon is totally fine because of DST that can occur at midnight in some
countries. You would get an invalid date otherwise.
Assume a country does its DST on 20.06.2012 12:00:00 a.m (midnight). The
valid dates are
19.06.2012 11:59:59 p.m.
20.06.2012 01:00:00 a.m. (DST active. There is no 20.06.
They chose to set it to noon because certain timezones do not have a 0 at
day light savings time. If you set the time to 0 on one of
these date/timezone combinations, if I understood correctly, the date will
roll back and not forward. Causing the date to be set to the previous day
instead of
Jens,
You were right about DatePicker setting dates to noon. I created an issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=7650
It's a minor problem, of course, since you can always do
Long date = datePicker.getValue().getTime();
return new Date(date - date % (24 * 60 * 60 *
> Jens suggests using CalendarUtil.resetTime() , but i have no idea how.
>
I suggested to do reference searches in your IDE starting from that method
and to find out how the date picker may uses this method indirectly. Then
you can see what you need to overwrite to change the DatePicker behavi
> There is no such thing as "00:00 am" :)
Hehe yeah I am used to 24 hours and I actually meant 12:00 a.m. = 00:00
(24-hour clock) = midnight. So some countries activate their DST on
midnight and thats why GWTs date picker chooses noon by default.
> Midnight is 12:00 pm, so there is no pr
There is no such thing as "00:00 am" :) Midnight is 12:00 pm, so there is
no problem in your app.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolki
Oh, never mind. I made a mistake. UTC-4 is what it should be right now. The
clock in computer shows that I am at UTC-5 which is the standard time. It
does not consider DST time. UTC-4 should be the correct one. So my 2nd
question is resolved. Computer Clock makes me confused and thought my app
there is DST in where I am living. In my app, I want to show users their
correct TimeZone no matter where they live. For example, in Eastern
America/Canada users, the app shoulde show UTC-5 in summer time( DST ), and
In winter, it should show UTC-4 (PDT).
However, my app is always showing UTC-4
> 1. How can I change the default time to midnight, which is [2012-Aug-16
> 00:00:00 am].
>
The DatePicker sets the time to 12:00 pm because some countries seems to do
their day light saving correction at 0:00 am (which would mean that 0:00 am
would not exists on these days because it become
I try to use GWT DateBox. When i click the DatePicker, the date and time
will be shown in the box. But it looks like the default time is 12:00pm
(noon)
For example, If I picked 2012, Aug, 16th in the datePicker, and my code is
the following:
date.setFormat(new
DateBox.DefaultFormat(DateTimeFor
10 matches
Mail list logo