diff --git a/views/fcrtCurrencyRate/_search.php b/views/fcrtCurrencyRate/_search.php
index <HASH>..<HASH> 100644
--- a/views/fcrtCurrencyRate/_search.php
+++ b/views/fcrtCurrencyRate/_search.php
@@ -21,7 +21,7 @@
 						 array(
 								 'model'=>$model,
 								 'attribute'=>'fcrt_date',
-								 'language'=> substr(Yii::app()->language,0,strpos(Yii::app()->language,'_')),
+								 'language' => strstr(Yii::app()->language . '_', '_', true),
 								 'htmlOptions'=>array('size'=>10),
 								 'options'=>array(
 									 'showButtonPanel'=>true,
Fixed bug in usage of datepicker