Time trouble UTC calculates wrong - any suggestions?

I’m using the following code to create a digital clock that will always display US Central time (GMT-0600) I subtract the 6 hours from the UTCHours script. This works fine until UTC time reaches 1 . 1am UTC time is 7pm US central time but Flash does the math as 1 - 6 = -5 . So in return I get -5:00 instead of the real time 7:00. This happens until UTC time reaches 6am, central time 00 (midnight). Then the clock is right for the rest of the day until 7pm central time again. Any sugestions on the script? I really need help :slight_smile: Thanks.

 days = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
 months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
dateUpdInt = setInterval(function () {
  myDate = new Date();
  second = myDate.getUTCSeconds();
  minute = myDate.getUTCMinutes();
  // I subtracted  6 from the UTC hours
  // the difference between UTC and US CENTRAL time.
  hour = myDate.getUTCHours()-6;
  day = days[myDate.getUTCDay()];
  dates = myDate.getUTCDate();
  month = months[myDate.getUTCMonth()];
  year = myDate.getUTCFullYear();
  
 if (second <= 9) {
  second = "0"+second;
 }
  
  if (minute <= 9) {
  minute = "0"+minute;
 }
 
 trace(day + ", " + month + " " + dates + " - " + hour + ":" + minute + ":" + second);
}, 1000);