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 is incorrect.
I am still struggling with my 1st problem. How to change the default time in datebox from noon to midnight.. Jens suggests using CalendarUtil.resetTime() , but i have no idea how. any ideas? Thanks On Thursday, 16 August 2012 13:06:51 UTC-4, Joey Li wrote: > > 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 no matter we are using DST or PDT. > Is there any way to fix this or any workaround? > > On Thursday, 16 August 2012 04:45:37 UTC-4, Jens wrote: >> >> >> 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 becomes 1:00 am). Not sure >> where exactly when 12:00 is set but one method in GWT that does this >> correction is CalendarUtil.resetTime(). Maybe thats a good starting point >> for reference searches. >> >> >>> 2. Why the TimeZone is not the same as my computer. Did I write anything >>> wrong there? Isn't it suppose to be the same the client's timezone? If not, >>> how to make the GWT show my timezone (Client's timezone). >>> >> >> Do you have daylight saving time where you live? It could very well be >> that the browser thinks no DST is active while your computer does think it >> is active. I recently had some problems with DST, you can read it up here: >> https://groups.google.com/d/topic/google-web-toolkit/e7IqbcJIzTY/discussion >> >> -- J. >> > -- 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-toolkit/-/r6tgFYgPVbYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
