Thank you Matt, I get it!
I found out something that make help other people who also face my problem: If current date time is 7 Dec 2005 16:00 GMT +0000, use new Date() will get back 7 Dec 2005 16:00 GMT +0000; new Date().getTime() will have 1133942400000. Then try to change the timezone to GMT +0100 (restart machine may be required), use new Date() will get back 7 Dec 2005 17:00 GMT +0100; use new Date(2005, 11, 7, 16, 0, 0, 0) will get back 7 Dec 2005 16:00 GMT +0100; use new Date(1133942400000) will get back 7 Dec 2005 17:00 GMT +0100. So, both Date() and Date(timeValue) will be affected by timezone. However Date(year, month, date, hh, mm, ss, ms) will not be affected by timezone. Regards, Ernest --- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > I think you should have your constructor match the superclass, call > super passing all the parameters, and then re-adjust your value based on > the timezone under the super call. > > > > Matt ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

