Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarisa Grigorjeva <larisa.grigorjeva@zabbix.com>2021-11-01 12:19:25 +0300
committerLarisa Grigorjeva <larisa.grigorjeva@zabbix.com>2021-11-01 12:19:25 +0300
commit0244493081b1c42b32a6f93f3f6da4a26a2b88da (patch)
tree6bc5fd339e18e4059339a1a4ece09cdafd14cea9
parentc9b86f45c7e71109c5a4819cfcb0e3ecdf23a4c8 (diff)
.......... [ZBXNEXT-686] fixed time offset function
-rw-r--r--ui/tests/include/helpers/CDateTimeHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tests/include/helpers/CDateTimeHelper.php b/ui/tests/include/helpers/CDateTimeHelper.php
index aaa55c061ff..933b81ed110 100644
--- a/ui/tests/include/helpers/CDateTimeHelper.php
+++ b/ui/tests/include/helpers/CDateTimeHelper.php
@@ -46,7 +46,7 @@ class CDateTimeHelper {
* @return string
*/
public static function getUTCOffset($timezone) {
- $offset = (strtotime('today 12:00 am UTC') - strtotime('today 12:00 am '.$timezone));
+ $offset = (strtotime('now UTC') - strtotime('now '.$timezone));
$sign = $offset >= 0 ? '+' : '-';
$offset = abs($offset);