The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by pramodhc9]

i have developed a spintimer(applet) .It works well within IE and HotJava
Showing the correct time.But in Netscape Browser it is showing 2 hours Time Lag
I have set the timezone to default value..
here i am giving the code for setting the time.

Calendar rightnow =Calendar.getInstance(TimeZone.getDefault()));
Date today = new Date();
DateFormat formater = DateFormat.getTimeInstance(DateFormat.SHORT);
formater.setTimeZone(TimeZone.getDefault());
formater.setCalendar(rightnow);
form =formater.format(rightnow.getTime());
Kindly give me solution for this

import-bot (20211) [Avatar] Offline
#2
Re: TimeLag
[Originally posted by matt]

I'm not sure what the problem is, but it definitely has nothing to do with
Swing.