From 69cf685126c0f720a6cd024bb48e81b2e96b7104 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Mon, 20 Mar 2017 18:30:43 +0100 Subject: [PATCH] add date time behaviour to ugiro reques assignment type --- common/messages/hu/common/card_package.php | 20 ++++++++++++++++++++ common/models/UgiroRequestAssignment.php | 12 ++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 common/messages/hu/common/card_package.php diff --git a/common/messages/hu/common/card_package.php b/common/messages/hu/common/card_package.php new file mode 100644 index 0000000..ea98afb --- /dev/null +++ b/common/messages/hu/common/card_package.php @@ -0,0 +1,20 @@ + Yii::t('common/ugiro_request_assignment', 'Updated At'), ]; } + + public function behaviors() + { + return ArrayHelper::merge( [ + [ + 'class' => TimestampBehavior::className(), + 'value' => function(){ return date('Y-m-d H:i:s' ); } + ], + ], parent::behaviors()); + } }