public function adjustTime(Contao\DataContainer $dc)
	{
		// Return if there is no active record (override all)
		if (!$dc->activeRecord)
		{
			return;
		}

		$arrSet['date'] = strtotime(date('Y-m-d', $dc->activeRecord->date) . ' ' . date('H:i:s', $dc->activeRecord->time));
		$arrSet['time'] = $arrSet['date'];

		$this->Database->prepare("UPDATE tl_news %s WHERE id=?")->set($arrSet)->execute($dc->id);
	}
public function adjustTime(Contao\DataContainer $dc)
	{
		
		if (!$dc->activeRecord)
		{
			return;
		}

		$arrSet['date'] = strtotime(date('Y-m-d', $dc->activeRecord->date) . ' ' . date('H:i:s', $dc->activeRecord->time));
		$arrSet['time'] = $arrSet['date'];

		$this->Database->prepare("UPDATE tl_news %s WHERE id=?")->set($arrSet)->execute($dc->id);
	}
public function adjustTime ( Contao \ DataContainer $ dc ) { // Return if there is no active record (override all) if ( ! $ dc -> activeRecord ) { return ; } $ arrSet [ 'date' ] = strtotime ( date ( 'Y-m-d' , $ dc -> activeRecord -> date ) . ' ' . date ( 'H:i:s' , $ dc -> activeRecord -> time ) ) ; $ arrSet [ 'time' ] = $ arrSet [ 'date' ] ; $ this -> Database -> prepare ( "UPDATE tl_news %s WHERE id=?" ) -> set ( $ arrSet ) -> execute ( $ dc -> id ) ; }
Adjust start end end time of the event based on date, span, startTime and endTime

@param Contao\DataContainer $dc
Adjust start end end time of the event based on date span startTime and endTime