Originally Posted by
lucina
Or use the appropriate PHP function:
Ok this works in english but not e.g. for german. That depends on the fact that PHP date() only outputs in english and Contao method Date::parse() transforms it to other languages.
If you have a language that didn't output the desired length you have to modify this:
PHP Code:
$GLOBALS['TL_LANG']['DAYS_SHORT'][0] = 'So';
$GLOBALS['TL_LANG']['DAYS_SHORT'][1] = 'Mo';
$GLOBALS['TL_LANG']['DAYS_SHORT'][2] = 'Di';
$GLOBALS['TL_LANG']['DAYS_SHORT'][3] = 'Mi';
$GLOBALS['TL_LANG']['DAYS_SHORT'][4] = 'Do';
$GLOBALS['TL_LANG']['DAYS_SHORT'][5] = 'Fr';
$GLOBALS['TL_LANG']['DAYS_SHORT'][6] = 'Sa';
New method for $this->parseDate() is Date::parse().
Bookmarks