kartik-v / yii2-datecontrol

Date control module allowing separation of date formats for View & Model for Yii Framework 2.0.
http://demos.krajee.com/datecontrol
Other
55 stars 29 forks source link

Issue in Display Date #95

Closed sahilpatel2216 closed 5 years ago

sahilpatel2216 commented 8 years ago

Hello,

Datetime format in saveSettings works properly but issue in display date if i update then display datetime as per my format but view and index file in date are not display as per my format.

give solution

Enrica-r commented 7 years ago

This format of files index.php and view.php aren't formatted by Datecontrol. I excpect this is done by Yii->formatter. Please post a code fragment of index or view file.

If you have set Datecontrol's displayFormat in Datecontrol module config or in Datecontrol widget call this has impact for Datecontrol only. I expect that you don't have set Yii formatter to same format.

I personally don't set displayFormat I set the correct language code in my config file eg. 'language' => 'de-CH',. This sets the correct country format in Yii formatter and there in Datecontrol also. Datecontrol takes Yii's formatter format per default.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.