not sure I understand the need for the System.currentTimeMillis() ... Simply doing new Date(); would be the same as what you are doing ... Date initializes with a current time of NOW if you don't supply a time.
-jason On Nov 10, 2008, at 2:35 PM, bw wrote: > > It seems the problem only occurs in hosted mode. When I run it in an > actual browser, everything works (tested in firefox 3.0). > > As far as I can tell, the javascript code generated with the PRETTY > flag is fine. > Java code like: > long now = System.currentTimeMillis(); > MyDate temp = new MyDate(now); > > gets converted into javascript like: > (new MyDate()).mydate = new Date(now[1] + now[0]); > > However, unless I can figure out the hosted mode error, I can't use > hosted mode for debugging any more. > > Anybody know any tricks for how to debug this? > > Thanks, > -Ben > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---