summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-13 06:22:11 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-13 06:22:11 +0000
commit6501c9bfce4f32737310e20e5944557950e560c3 (patch)
tree7c962aee48929e0440c37dfcebeb68fb1c25ca85 /frontends/php/include
parent9e04a59721a93bc17c701f0154e789988548cc2d (diff)
downloadzabbix-6501c9bfce4f32737310e20e5944557950e560c3.tar.gz
zabbix-6501c9bfce4f32737310e20e5944557950e560c3.tar.xz
zabbix-6501c9bfce4f32737310e20e5944557950e560c3.zip
- support of special unit "unixtime" (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2828 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index cb608ad0..e3456dc6 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -167,6 +167,12 @@ function SDI($msg="SDI") { echo "DEBUG INFO: $msg ".BR; } // DEBUG INFO!!!
function convert_units($value,$units)
{
+// Special processing for unix timestamps
+ if($units=="unixtime")
+ {
+ $ret=date("Y.m.d H:i:s",$value);
+ return $ret;
+ }
// Special processing for seconds
if($units=="s")
{