diff --git a/lib/Object.php b/lib/Object.php index c030229a..de82f6b9 100644 --- a/lib/Object.php +++ b/lib/Object.php @@ -327,6 +327,14 @@ public function lastModification() if (!is_null($time)) { return $time; } + $native = $this->getValue('__nativemodified'); + if ($native) { + // Normalize before storing + $dt = new \Horde_Date($native); + $ts = $dt->timestamp(); + $this->setValue('__modified', $ts); + return $ts; + } if (!$this->getValue('__uid')) { $this->setValue('__modified', 0); return 0;