DB IDO: Fix wrong timestamp in column expiration_time.

Fixes #5292
This commit is contained in:
Michael Friedrich 2014-01-23 17:42:33 +01:00
parent fcec5c61a0
commit f9c37524f1
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ void ServiceDbObject::AddCommentByType(const DynamicObject::Ptr& object, const C
fields1->Set("is_persistent", 1);
fields1->Set("comment_source", 1); /* external */
fields1->Set("expires", (comment->GetExpireTime() > 0) ? 1 : 0);
fields1->Set("expiration_time", comment->GetExpireTime());
fields1->Set("expiration_time", DbValue::FromTimestamp(comment->GetExpireTime()));
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
DbQuery query1;