perche con questo script mi spunta l'oraio un'ora avanti?
onClipEvent (load) {
days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday');
months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
timedate = new Date();
}
onClipEvent (enterFrame) {
meridian = "AM";
hour = (timedate.getHours());
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = (timedate.getMonth()+1);
monthname = months[month-1];
year = timedate.getFullYear();
if (hour=12) {
meridian = "PM";
}
if (hour>12) {
hour = hour-12;
meridian = "PM";
}
if (length(minutes) == 1) {
minutes = "0"+minutes;
}
if (length(seconds) == 1) {
seconds = "0"+seconds;
}
currenttime = hour+":"+minutes+":"+seconds+" "+meridian;
currentdate = todaydate+"/"+month+"/"+year;
fulldate = dayname+", "+monthname+" "+todaydate+", "+year;
delete timedate;
timedate = new Date();
}