fixed time issue in flash

  • Started
  • Last post
  • 1 Response
  • linearch

    anybody help out with this? many thanks...i'm probably being a dumbhead.....

    timezone=new Date();
    //Calculating Mountain Time
    mountainhour=timezone.getUTCHour...
    mountainminute=timezone.getUTCMi...
    mountainsecond=timezone.getUTCSe...
    mountain=(mountainhour + ':' + mountainminute + ':' + mountainsecond);
    //Mountain is the variable assigned to a dynamic text box

    The only problem I'm having with this is, if UTC time is 6:37:00, mountain hour comes out to be a negative hour. I don't know how to proceed any further with making sure that I get the accurate hour.

  • UndoUndo0

    are you trying to adjust for time zone offset??

    look at using

    timezone.getTimezoneOffset()

    lookup the date class in flash and it gives a good example