[Vtigercrm-commits] [vtiger-commits] r9358 - /vtigercrm/trunk/data/CRMEntity.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat Sep 9 04:01:59 EDT 2006


Author: richie
Date: Sat Sep  9 02:00:56 2006
New Revision: 9358

Log:
Postgres fixes by Jens done --By Don

Modified:
    vtigercrm/trunk/data/CRMEntity.php

Modified: vtigercrm/trunk/data/CRMEntity.php
==============================================================================
--- vtigercrm/trunk/data/CRMEntity.php (original)
+++ vtigercrm/trunk/data/CRMEntity.php Sat Sep  9 02:00:56 2006
@@ -935,7 +935,7 @@
         global $adb;
 	global $current_user;
 
-        $current_time = date('Y-m-d H:i:s');
+        $current_time = $adb->formatDate(date('YmdHis'));
 	if($this->column_fields['assigned_user_id'] != '')
 		$ownertype = 'user';
 	else
@@ -949,7 +949,7 @@
 	if($comment != '')
 	{
 		$comment = addslashes($comment);
-		$sql = "insert into vtiger_ticketcomments values('',".$this->id.",'".$comment."','".$current_user->id."','".$ownertype."','".$current_time."')";
+		$sql = "insert into vtiger_ticketcomments values('',".$this->id.",'".$comment."','".$current_user->id."','".$ownertype."',".$current_time.")";	
 	        $adb->query($sql);
 	}
 }
@@ -963,7 +963,7 @@
 	$log->info("in insertIntoFAQCommentTable  ".$table_name."    module is  ".$module);
         global $adb;
 
-        $current_time = date('Y-m-d H:i:s');
+        $current_time = $adb->formatDate(date('YmdHis'));
 
 	if($this->column_fields['comments'] != '')
 		$comment = $this->column_fields['comments'];
@@ -973,7 +973,7 @@
 	if($comment != '')
 	{
 		$comment = addslashes($comment);
-		$sql = "insert into vtiger_faqcomments values('',".$this->id.",'".$comment."','".$current_time."')";
+		$sql = "insert into vtiger_faqcomments values('',".$this->id.",'".$comment."',".$current_time.")";	
 		$adb->query($sql);
 	}
 }





More information about the vtigercrm-commits mailing list