public function actionDateSubscription()
{
$jd = Yii::$app->request->post();
$jd = (object)$jd;
Yii::$app->user->setIdentity(\common\models\User::findOne(['id' => $jd->data]));
$userSettings = UserSettings::findOne(["user_id" => $jd->data]);
if ($userSettings->save()){
echo "date_subscription: ".$userSettings->user_id.$userSettings->date_subscription;
}
}