Skip to content

Commit 0fce25b

Browse files
committed
Вернул установку таймзоны, версия 9.2
1 parent 143a07b commit 0fce25b

File tree

8 files changed

+250
-246
lines changed

8 files changed

+250
-246
lines changed

app/Classes/Application.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function __construct()
2323
}
2424

2525
session_start();
26+
date_default_timezone_set(defaultSetting('timezone'));
2627

2728
$this->cookieAuth();
2829
$this->setSetting();

app/bootstrap.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
define('STORAGE', BASEDIR . '/storage');
3535
define('MODULES', BASEDIR . '/modules');
3636
define('SITETIME', time());
37-
define('VERSION', '9.1');
37+
define('VERSION', '9.2');
3838

3939
require_once BASEDIR . '/vendor/autoload.php';
4040

@@ -54,8 +54,6 @@
5454
}
5555
}
5656

57-
date_default_timezone_set(config('TIMEZONE'));
58-
5957
$db = new DB();
6058
$db->addConnection([
6159
'driver' => config('DB_DRIVER'),

app/helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ function resizeImage(?string $path, array $params = []): HtmlString
14031403

14041404
$strParams = [];
14051405
foreach ($image['params'] as $key => $param) {
1406-
$strParams[] = $key . '="' . $param . '"';
1406+
$strParams[] = $key . '="' . check($param) . '"';
14071407
}
14081408

14091409
$strParams = implode(' ', $strParams);

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
},
9191
"extra": {
9292
"branch-alias": {
93-
"dev-master": "9.2-dev"
93+
"dev-master": "9.3-dev"
9494
}
9595
},
9696
"config": {

0 commit comments

Comments
 (0)