File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
engine/Shopware/Controllers/Backend
snippets/backend/category
themes/Backend/ExtJs/backend/category/controller Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ This changelog references changes done in Shopware 5.6 patch versions.
2222 * ` city `
2323 * ` country `
2424 * ` state `
25+ * Added ` db.timezone ` section to ` config.php ` to configure a custom timezone for the database connection
2526
2627### Changes
2728
Original file line number Diff line number Diff line change @@ -127,8 +127,19 @@ public function getTimezoneAction()
127127 {
128128 $ offset = 0 ;
129129 try {
130+ $ sql = <<<'SQL'
131+ SELECT timeZones.timeZone
132+ FROM (
133+ SELECT @@SESSION.time_zone AS timeZone
134+ UNION
135+ SELECT @@system_time_zone AS timeZone
136+ ) AS timeZones
137+ WHERE timeZone != 'SYSTEM'
138+ LIMIT 1
139+ SQL;
140+
130141 $ timezone = $ this ->container ->get ('dbal_connection ' )
131- ->query (' SELECT @@SESSION.time_zone; ' )
142+ ->query ($ sql )
132143 ->fetchColumn ();
133144
134145 if (in_array ($ timezone [0 ], ['- ' , '+ ' ], true )) {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ tabs/restrict_category/title = "Restrict category"
2929tabs/restriction/button_add = " Add"
3030tabs/restriction/button_remove = " Remove"
3131tabs/settings_title = " Settings"
32- tree/delete_confirmation = " Are you sure you want to delete category: [0] and all its subcategories?. There are [1] item(s) assigned to this category. "
32+ tree/delete_confirmation = " Are you sure you want to delete category: [0] and all its subcategories?"
3333tree/delete_confirmation_headline = " Delete this category?"
3434tree/delete_confirmation_title = " Are you sure you want to delete the category?"
3535tree/delete_failure = " Category could not be deleted."
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Ext.define('Shopware.apps.Category.controller.Tree', {
6868 moveCategorySuccess : '{s name=tree/move_success}Category has been moved.{/s}' ,
6969 moveCategoryFailure : '{s name=tree/move_failure}Category could not be moved.{/s}' ,
7070 confirmDeleteCategoryTitle : '{s name=tree/delete_confirmation_title}Are you sure you want to delete the category?{/s}' ,
71- confirmDeleteCategory : '{s name=tree/delete_confirmation}Are you sure you want to delete category: [0] and all its sub categories?. {/s}' ,
71+ confirmDeleteCategory : '{s name=tree/delete_confirmation}Are you sure you want to delete category: [0] and all its subcategories? {/s}' ,
7272 confirmDeleteCategoryHeadline : '{s name=tree/delete_confirmation_headline}Delete this Category?{/s}' ,
7373 deleteSingleItemSuccess : '{s name=tree/delete_success}Category has been deleted.{/s}' ,
7474 deleteSingleItemFailure : '{s name=tree/delete_failure}Category could not be deleted.{/s}' ,
You can’t perform that action at this time.
0 commit comments