diff --git a/addcomment.php b/addcomment.php index 05f2c99..daf1cb7 100644 --- a/addcomment.php +++ b/addcomment.php @@ -35,7 +35,7 @@ if($body) // get current userid $userId = (loggedin()) ? $current->userid : 0; - $result = mysql_query("INSERT INTO appComments VALUES (null, null, $thread, ". + $result = mysql_query("INSERT INTO appComments VALUES (NOW(), null, $thread, ". "$appId, $versionId, $userId, '$hostname', '$subject', ". "'$body1', 0)"); diff --git a/tables/appdb_tables.sql b/tables/appdb_tables.sql index 6ebeec2..0e8db44 100644 --- a/tables/appdb_tables.sql +++ b/tables/appdb_tables.sql @@ -169,7 +169,7 @@ create table appOwners ( * user comments */ create table appComments ( - time timestamp, + time datetime, commentId int not null auto_increment, parentId int default 0, appId int not null, @@ -256,7 +256,7 @@ create table appMaintainers ( appId int, versionId int, userId int, - submitTime timestamp, + submitTime datetime, key(maintainerId) ); @@ -270,7 +270,7 @@ create table appMaintainerQueue ( versionId int, userId int, maintainReason text, - submitTime timestamp, + submitTime datetime, key(queueId) );