if ( this.parent.position == 1) { this.setX(-this.getTextWidth() - 7); this.setY(-9); } else if ( this.parent.position == 2) { this.setX(Math.round(-this.getTextWidth()/2 )); this.setY(-19); } else if ( this.parent.position == 3) { this.setX(4); this.setY(-8); } else { this.setX(Math.round(-this.getTextWidth()/2 - 2 )); this.setY(0); } var currentYear = new Date(); currentYear = 1900 + currentYear.getYear(); // dateparts is month,day,hours,mins var datepartsarray = dateparts.split( ',' ); return new Date( currentYear, datepartsarray[0], datepartsarray[1], datepartsarray[2], datepartsarray[3] ); dstStart.getTime()) && (localDate < dstEnd.getTime()) ) { this.isDST = true; } // Southern hemisphere - invert DST if ( dstStart.getMonth() > dstEnd.getMonth() ) { this.isDST = !true; } this.title.setLabelPosition() ]]> var myOffset = this.timezoneoffset; if ( this.isDST ) { // in daylight savings time myOffset += 1; } clockObj.setTimeZone( myOffset ); this.syncclock(clockObj); myclocktext.setText( this.title.getText() );