Wiki articles in category How-tos tagged with "locale"

Showing 1-2 of 2 items.

Getting information from the current locale

Created 5 years ago by CeBe, updated 5 years ago by CeBe.

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](

5 0
Viewed: 20 908 times
Version: 2.0
Category: How-tos

Local time zones and locales

Created 13 years ago by Russell England, updated 13 years ago by Russell England.

The sql 'set time_zone' ensures that all dates retrieved are in UTC time. If your MySql server has the time zone names installed then use 'UTC' instead of '+00:00'.


Copy the code at the end of this wiki for LocalTime.php and DefaultDateTimeParser.php int...

13 2
Viewed: 100 086 times
Version: 1.1
Category: How-tos