Skip to content
Snippets Groups Projects
Verified Commit ef8f7aa8 authored by Dave Long's avatar Dave Long
Browse files

Issue #3218087 by nlisgo, Gribnif, Lendude, smustgrave: Views...

Issue #3218087 by nlisgo, Gribnif, Lendude, smustgrave: Views MysqlDateSql::getDateFormat() should translate PHP's 'o' format to MySQL's '%x'
parent 4365ab3f
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ class MysqlDateSql implements DateSqlInterface {
protected static $replace = [
'Y' => '%Y',
'y' => '%y',
'o' => '%x',
'M' => '%b',
'm' => '%m',
'n' => '%c',
......
......@@ -65,7 +65,7 @@ public function providerTestGetDateFormat() {
return [
['foo.field', 'Y-y-M-m', '%Y-%y-%b-%m'],
['bar.field', 'n-F D d l', '%c-%M %a %d %W'],
['baz.bar_field', 'j/W/H-h i s A', '%e/%v/%H-%h %i %s %p'],
['baz.bar_field', 'o j/W/H-h i s A', '%x %e/%v/%H-%h %i %s %p'],
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment