Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6976911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:33:28+00:00 2026-05-27T17:33:28+00:00

In actionscript I am trying to format datetime fields coming in from a webservice

  • 0

In actionscript I am trying to format datetime fields coming in from a webservice call which takes into account the timezone and daylight savings time. Basically we need to display times for events, here in our TZ at the time it will be on that day. The following function works for timezones but we recently found that all of the upcoming times after the daylight savings time are being shifted an hour forward.

Is there a better way to handle this?

public function getTimeZoneFix(fixDate:Date):Date {
     var GMTHour:Number = 4; // our timzone offset
     var gmtDate:Date = new Date(fixDate);
     var hourOffset:Number = gmtDate.getTimezoneOffset() / 60 - GMTHour;
     gmtDate.setHours(gmtDate.getHours() + hourOffset );
     return gmtDate;             
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:33:28+00:00Added an answer on May 27, 2026 at 5:33 pm

    Have a look on the following:
    http://thanksmister.com/2011/10/06/determining-local-timezone-in-actionscript-air-flex-as3/

    It may help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to call a function after I load some XML into Actionscript, and
I'm trying to call a function in my ActionScript from my JavaScript, I've managed
I'm trying to have JavaScript call a function from my ActionScript. ActionScript: import flash.external.ExternalInterface;
I'm trying to load HTML/CSS from an external domain into a SWF using Actionscript
I'm trying to read xml fields (with actionscript 3), but the problem is that
I'm trying to do a simple import into an ActionScript Project that I've created
I'm trying to understand how this piece of code from Keith Peter's Advanced Actionscript
I'm trying to upload a file using ActionScript, which I can do quite easily
I'm trying to use RemoteObject from ActionScript to execute simple method on Java server
I'm trying to call AMFPHP two times on a single ActionScript method and what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.