Code

Apply patch for #3768
[gosa.git] / trunk / gosa-plugins / goto / addons / goto / events / class_DaemonEvent.inc
index b163d1b0552aff03fe479d7fa38caf4b1677b736..c06fa68ccb7208f9ce16913a1d56741db6d0b11d 100644 (file)
@@ -432,8 +432,10 @@ class DaemonEvent
       $ret[$attr] = $this->$attr;
     }
 
-    $ret['timestamp'] = $this->_timestamp_to_event($this->timestamp);
-
+    # Check if timestamp is in gosa-si-time-format 
+    if(!tests::is_gosa_si_time($ret['timestamp'])){ 
+      $ret['timestamp'] = $this->_timestamp_to_event($this->timestamp); 
+    } 
     return($ret);
   }