Permalink
Browse files

Updated as per the discussion at #29

  • Loading branch information...
1 parent f0a9637 commit 977e8a878831a1e132614f6159252262d63b8a9c @ddreier ddreier committed Apr 18, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/application/models/project/issue.php
  2. +1 −1 app/application/models/project/issue/comment.php
@@ -88,7 +88,7 @@ public function change_status($status)
if($status == 0)
{
$this->closed_by = \Auth::user()->id;
- $this->closed_at = \DB::raw(date('Y-m-d H:i:s'));
+ $this->closed_at = date('Y-m-d H:i:s');
/* Add to activity log */
\User\Activity::add(3, $this->project_id, $this->id);
@@ -47,7 +47,7 @@ public static function create_comment($input, $project, $issue)
\DB::table('projects_issues_attachments')->where('upload_token', '=', $input['token'])->where('uploaded_by', '=', \Auth::user()->id)->update(array('issue_id' => $issue->id, 'comment_id' => $comment->id));
/* Update the project */
- $issue->updated_at = \DB::raw(date('Y-m-d H:i:s'));
+ $issue->updated_at = date('Y-m-d H:i:s');
$issue->updated_by = \Auth::user()->id;
$issue->save();

0 comments on commit 977e8a8

Please sign in to comment.