Skip to content

Commit 4028e9e

Browse files
committed
Merge branch 'ntr/5.6/minor-release-fixes' into '5.6'
Ntr/5.6/minor release fixes See merge request shopware/5/product/shopware!9
2 parents 369e326 + e38cdbe commit 4028e9e

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

UPGRADE-5.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

engine/Shopware/Controllers/Backend/Systeminfo.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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)) {

snippets/backend/category/main.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tabs/restrict_category/title = "Restrict category"
2929
tabs/restriction/button_add = "Add"
3030
tabs/restriction/button_remove = "Remove"
3131
tabs/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?"
3333
tree/delete_confirmation_headline = "Delete this category?"
3434
tree/delete_confirmation_title = "Are you sure you want to delete the category?"
3535
tree/delete_failure = "Category could not be deleted."

themes/Backend/ExtJs/backend/category/controller/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}',

0 commit comments

Comments
 (0)