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:
Diffstat (limited to 'frontends/php/report3.php')
-rw-r--r--frontends/php/report3.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/php/report3.php b/frontends/php/report3.php
index a0c08cb4604..58b17f0ffa0 100644
--- a/frontends/php/report3.php
+++ b/frontends/php/report3.php
@@ -36,8 +36,8 @@ $fields = array(
);
check_fields($fields);
-$period = get_request('period', 'weekly');
-$year = get_request('year', date('Y'));
+$period = getRequest('period', 'weekly');
+$year = getRequest('year', date('Y'));
define('YEAR_LEFT_SHIFT', 5);
@@ -93,7 +93,7 @@ switch ($period) {
}
function format_time($t) {
- return zbx_date2str(_('Y'), $t);
+ return zbx_date2str(_x('Y', DATE_FORMAT_CONTEXT), $t);
}
function format_time2($t) {
@@ -111,7 +111,7 @@ switch ($period) {
}
function format_time($t) {
- return zbx_date2str(_('M Y'), $t);
+ return zbx_date2str(_x('F', DATE_FORMAT_CONTEXT), $t);
}
function format_time2($t) {
@@ -129,7 +129,7 @@ switch ($period) {
}
function format_time($t) {
- return zbx_date2str(_('d M Y'), $t);
+ return zbx_date2str(DATE_FORMAT, $t);
}
function format_time2($t) {
@@ -156,7 +156,7 @@ switch ($period) {
}
function format_time($t) {
- return zbx_date2str(_('d M Y H:i'), $t);
+ return zbx_date2str(DATE_TIME_FORMAT, $t);
}
function format_time2($t) {