function watchCompare($old, $new) { $o = ''; $items = $this->getItemIds(); $n = $this->getItemLabels($items); return parent::watchCompare($o, $n); // then compare as text }
function watchCompare($old, $new) { global $prefs; $dformat = $prefs['short_date_format'] . ' ' . $prefs['short_time_format']; $old = TikiLib::lib('tiki')->date_format($dformat, (int) $old); $new = TikiLib::lib('tiki')->date_format($dformat, (int) $new); return parent::watchCompare($old, $new); }
function watchCompare($old, $new) { $o = $this->getItemLabel($old); $n = $this->getItemLabel($new); return parent::watchCompare($o, $n); // then compare as text }