Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2003, 10:50 PM
Junior Member
 
Join Date: Feb 2003
Posts: 12
Default Problem with Date()

I'm working on a project that requires time validation of data within an xml file. There is a timestamp in one of the nodes that is compared with the current system time.

While working on this, I noticed that SWFKit was returning time 1 hour behind my system time.

To duplicate:
create a new fla file
add 2 dynamic text boxes
set the instance name on one of them to "FlashDate"
set the var name on the other to "SWFDate"
put the following actionscript code in frame 1
Code:
var tmpDate=new Date();
FlashDate.text=tmpDate;
fscommand("ffish_run","UpdateTime");
publish to generate the swf file and add it to a new swfkit project
create a new script named "UpdateTime"
put the following code in it.
Code:
var tmpDate = new Date();

FlashPlayer.bindData("SWFDate");
FlashPlayer.SWFDate=tmpDate;
FlashPlayer.updateData(false);
FlashPlayer.unbindData("SWFDate");
I've copied/pasted the resulting data
Code:
Thu Jun 26 23:47:22 GMT-0400 2003
Thu Jun 26 22:47:22 GMT-500 2003
Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 06-26-2003, 11:54 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Problem with Date()

Thank you.

It's a problem of the time zone. Please tell me the time zone you locate in. We will fix the bug asap.
Reply With Quote
  #3 (permalink)  
Old 06-26-2003, 11:56 PM
Junior Member
 
Join Date: Feb 2003
Posts: 12
Default Re: Problem with Date()

Eastern Time Zone (united states) with auto adjust for Daylight savings time.

Thanks!
Reply With Quote
  #4 (permalink)  
Old 06-27-2003, 01:16 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Problem with Date()

Thank you. SWFKit doesn't auto adjust for Daylight savings time. We will fix it.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:30 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.