1 Reply Latest reply on Jun 2, 2006 3:11 PM by blemmo

    Time Zones

    michael novia Level 1
      Im working a project, where we are showing photos from around the world. Part of our hook, is we would like to impliment showing what time it is in thoes cities, places, whatever - in real time.

      What is the best way to go about gathering this information via flash?
        • 1. Re: Time Zones
          blemmo Level 1
          I guess there must be some info provided with the picture, probably the timezone offset of the location to GMT. Then in Flash, the time could be calculated by taking the user's time (new Date()), adding the offset of the user (with Date.getTimezoneOffset()) to get GMT, then adding the offset from the picture location to get the actual time there.
          Could be difficult to handle daylight saving times though, but basically this should work.