code: 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);
  	}
docs: Adjust start end end time of the event based on date, span, startTime and endTime
  
  @param Contao\DataContainer $dc