Explorar o código

Removed experimantal timestamp code

Stephen Ficklin %!s(int64=9) %!d(string=hai) anos
pai
achega
99e60e8834
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  1. 0 8
      tripal_core/api/tripal_core.chado_query.api.inc

+ 0 - 8
tripal_core/api/tripal_core.chado_query.api.inc

@@ -441,14 +441,6 @@ function chado_insert_record($table, $values, $options = array()) {
     if (strcmp($value, '__NULL__')==0) {
       $itypes[] = "NULL";
     }
-    // Format the values of datetime fields for insertion.
-    if ($def['type'] == 'datetime') {
-      // Convert UNIX timestamps into the format expected by PostgreSQL.
-      if(is_numeric($value)) {
-        $ivalues[":$field"] == date("Ymd G:i:s", $value);
-      }
-      $itypes[] = ":$field";
-    }
     else {
       $itypes[] = ":$field";
     }