Hi, I have a GWT app used by both users in Japan and in US. The app is a simple class scheduling web site where Japanese students book English lessons with US tutors. The class time must be displayed in Japan time for Japanese users and US time for US users.
The challenge is that I need to detect US daylight saving time change for Japanese users. My attempt is below code: Date oct5 = new Date(); oct5.setMonth(9); oct5.setDate(5); Date nov5 = new Date(); nov5.setMonth(10); nov5.setDate(5); boolean daylightSavingChangeHappening = oct5.getTimezoneOffset() - nov5.getTimezoneOffset() != 0; The challenge is that for Japanese users, there is not change in timezone offset. (Japan has not daylight saving system). So daylightSavingChangeHappening will never gets set to TRUE. If there are a way to change timezone to US PST time so that I can detect US daylight saving change? Or if you have other recommendations, please let me know. thanks, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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 -~----------~----~----~----~------~----~------~--~---
