 				if (now_J-i > this.valid_to_J) continue;
 				if (now_J-i < this.valid_from_J) break;
 				
-				i_date = new Date(now.getTime()-i*1000*60*60*24);
+				//i_date = new Date(now.getTime()-i*1000*60*60*24);
+				i_date.setTime(i_date.getTime()-1000*60*60*24);
 				
 	            if (this.instring(this.cron_day.toString(), i_date.getDate().toString()) == false) continue;
 	            if (this.instring(this.cron_month.toString(), i_date.getMonth().toString()) == false) continue;

			this.addChild(this.current_layout);
		}
		
		
 
		private function playNextLayoutOnTimer(event:TimerEvent):void
		{
			event.stopPropagation();


			var from_split:Array = cronline_a[6].toString().split('-');
			this.valid_from_date = new Date(from_split[0], from_split[1], from_split[2]);
			this.valid_from_J = Math.floor( this.valid_from_date.getTime() / 1000 / 60 / 60 / 24 );

			var to_split:Array = cronline_a[7].toString().split('-');
			this.valid_to_date = new Date(to_split[0], to_split[1], to_split[2]);
			this.valid_to_J = Math.floor( this.valid_to_date.getTime() / 1000 / 60 / 60 / 24 );
			
			this.setLastDate();
			this.setNextDate();

			Application.application.log( "Created collection " + this.sw_id + ' - ' + this.lastDate.toTimeString() + '..' + this.nextDate.toTimeString() );

			this.addEventListener(Event.ADDED, play, false, 0, true);
		}
