Skip to content

Commit

Permalink
Fix Changed translation
Browse files Browse the repository at this point in the history
Test formatter date
  • Loading branch information
gugoan committed Apr 27, 2015
1 parent 1bd8578 commit abf28a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion models/Cashbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function attributeLabels()
'is_pending' => Yii::t('app', 'Pending'),
'attachment' => Yii::t('app', 'Attach'),
'inc_datetime' => Yii::t('app', 'Created'),
'edit_datetime' => Yii::t('app', 'Changed '),
'edit_datetime' => Yii::t('app', 'Changed'),
];
}

Expand Down
4 changes: 2 additions & 2 deletions views/cashbook/_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
]); ?>

<div class="row">
<div class="col-sm-9">
<div class="col-sm-11">
<?php
echo '<label class="control-label">'.Yii::t('app', 'From').'</label>';
echo DatePicker::widget([
Expand All @@ -48,7 +48,7 @@
</div>
</div><p>
<div class="row">
<div class="col-sm-9">
<div class="col-sm-11">
<?php
echo '<label class="control-label">'.Yii::t('app', 'To').'</label>';
echo DatePicker::widget([
Expand Down
3 changes: 2 additions & 1 deletion views/cashbook/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
],
[
'attribute' => 'edit_datetime',
'format' => ['date', 'd/M/Y H:m:s'],
'value' => Yii::$app->formatter->asDate($model->inc_datetime, 'short'),
//'format' => ['date', 'd/M/Y H:m:s'],
],
],
]) ?>
Expand Down

0 comments on commit abf28a4

Please sign in to comment.