예제 #1
0
 public static function updateEndingDate($id, $newEndingDate, $oldEndingDate)
 {
     if (strcmp($newEndingDate, $oldEndingDate) === 0) {
         return false;
     }
     Dates::initDateTime($newEndingDate, $oldEndingDate);
     ScheduleFetcher::updateSingleColumn($id, ScheduleFetcher::DB_COLUMN_END_TIME, $newEndingDate, PDO::PARAM_STR);
     return true;
 }