Flash clock

Hi, ive got this flash clock, which tells local GMT time, im trying to modify it so that it tells the time for another timezone which is 5h 30m ahead.

i’ve tried this

hourrotate = (hours + 5) * 30;

and

minrotate = (mins + 30) * 6;

but the hourhand messes up for some reason.

here’s the code, can someone please help me modify it.



onClipEvent (enterFrame)
{
    mydate = new Date();
    GMToffset = mydate.getTimezoneOffset();
    hours = mydate.getUTCHours();
    mins = mydate.getUTCMinutes();
    secs = mydate.getUTCSeconds();
    months = mydate.getUTCMonth();
    if (hours > 12)
    {
        hours = hours - 12;
    } // end if
    if (months < 2 || months > 9)
    {
        hourrotate = (hours - 1) * 30;
    }
    else
    {
        hourrotate = hours * 30;
    } // end if
    minrotate = mins * 6;
    secrotate = secs * 6;
    hourhand._rotation = hourrotate + mins / 2;
    minhand._rotation = minrotate;
    sechand._rotation = secrotate;
}