dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Time problem!!!!!!!!!!

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    7
    I have done a flash clock in my site.But the time has something wrong,let's say incorrect.
    E.g.My real time in my own country is 4:30pm,but it appears as 5:30pm!So,the problem is the flash clock appears the real time plus+1hr!!!!
    And my flash clock involves actionscripts,i follow the procedure in the tutorial.And i tried to figure out what's wrong with it.However,I guess nothing wrong with it.
    the first frame and second frame actionscripts is the same as follows.mydate=new Date()
    code=mydate.getHours()+":"mydate.getMinutes()
    It seems nothing wrong with it.Aren't they?Please help!!!!!

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    139
    This MUST simply be due to the fact that the computer you are using Flash on is set to the wrong time, because the Flash function getHours() just returns the value in the system clock.

    Correct me if I'm wrong, though.

  3. #3
    Member
    Join Date
    Oct 2000
    Posts
    53
    is the time wrong when you put it to a webserver ? Because maybe your webserver is somewhere in another timezone ..

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Location
    Not on the dole any more
    Posts
    1,040
    It seems there might be a bug with the daylight saving time calculation in Flash 5. Check out this thread for a very detailed discussion of the problem.

  5. #5
    Junior Member
    Join Date
    Apr 2001
    Posts
    7

    I've checked in my both PC's......

    Originally posted by Andrew Staffell
    This MUST simply be due to the fact that the computer you are using Flash on is set to the wrong time, because the Flash function getHours() just returns the value in the system clock.

    Correct me if I'm wrong, though.

    Andrew Staffell,
    I've checked my PC's BIOS,and the windows time,it's correct.So, i think it's flash problem.If you try to run a javascript gettime function in html,it works perfectly whenever you are,holland,africa,.....So,this problem cannot be fixed entirely.Maybe i should set the variable, hour=hour-1!Anyway,thx your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center