diff --git a/yii/behaviors/AutoTimestamp.php b/yii/behaviors/AutoTimestamp.php index 74049eb..3387cae 100644 --- a/yii/behaviors/AutoTimestamp.php +++ b/yii/behaviors/AutoTimestamp.php @@ -63,7 +63,7 @@ class AutoTimestamp extends Behavior { return array( ActiveRecord::EVENT_BEFORE_INSERT => 'beforeInsert', - ActiveRecord::EVENT_BEFORE_UPDATE => 'beforeInsert', + ActiveRecord::EVENT_BEFORE_UPDATE => 'beforeUpdate', ); }