kartik-v/yii2-datecontrol — pull request #34 by Erik-r (2014-12-11 16:44:29+00:00)
Title: Bugfix in DateControl and DateControl's Module

In `DateControl` method `setLocal` the localized the path and filename is constructed. The method uses the country and language code like `de-CH`. Most directories have a two digit language code like 'de'. The bugfix checks if 4-digit directory is found. If not it tries with 2-digit language code.

In Module of DateControl the methods `getDisplayFormat` and `getSaveFormat` the call of parseFormat should be in the else case only. If format is defined in php format already the parser changes to a complet wrongly defined format string (escpecially datetime).