瀏覽代碼

Use the create_date variable instead of time()

Abdullah Almsaeed 6 年之前
父節點
當前提交
032c59cd87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tripal/includes/TripalEntityController.inc

+ 1 - 1
tripal/includes/TripalEntityController.inc

@@ -394,7 +394,7 @@ class TripalEntityController extends EntityAPIController {
       // If our entity has no id, then we need to give it a
       // time of creation.
       if (empty($entity->id)) {
-        $entity->created = time();
+        $entity->created = $create_date;
         $invocation = 'entity_insert';
       }
       else {