From 953377b3c6145282e5c5e18608ccab43f4097ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 17 Sep 2017 19:17:35 +0200 Subject: [PATCH] add timezone to the about page (in demo build and local server) --- _debug_replacements.php | 2 +- base.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_debug_replacements.php b/_debug_replacements.php index c7d4124..56fad84 100644 --- a/_debug_replacements.php +++ b/_debug_replacements.php @@ -57,7 +57,7 @@ return [ 'vers_fw' => $vers, 'date' => date('Y-m-d'), - 'time' => date('G:i'), + 'time' => date('G:i')." ".TIMEZONE, 'vers_httpd' => '0.4', 'vers_sdk' => '010502', 'githubrepo' => 'https://github.com/espterm/espterm-firmware', diff --git a/base.php b/base.php index a049c68..c0458cf 100644 --- a/base.php +++ b/base.php @@ -14,6 +14,8 @@ if (!empty($argv[1])) { define('GIT_HASH', trim(shell_exec('git rev-parse --short HEAD'))); +define('TIMEZONE', trim(shell_exec('date +%Z'))); // for replacements + $prod = defined('STDIN'); define('DEBUG', !$prod);