From f5f63b4f014406175be04c04eea8ee78b89822c0 Mon Sep 17 00:00:00 2001 From: forecho Date: Fri, 25 Mar 2016 10:18:39 +0800 Subject: [PATCH] fix time bug --- MeritBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MeritBehavior.php b/MeritBehavior.php index f00392c..6ddf188 100644 --- a/MeritBehavior.php +++ b/MeritBehavior.php @@ -141,7 +141,7 @@ public function update(MeritTemplate $meritTemplate) 'description' => $description, 'action_type' => $meritTemplate->action_type, 'increment' => $meritTemplate->increment, - 'created_at' => $meritTemplate->created_at, + 'created_at' => time(), ]); if (!$meritLog->save()) { throw new Exception(array_values($meritLog->getFirstErrors())[0]);