From d186b998a70958011dd1733ea07208c495ddb455 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 5 Dec 2015 15:56:53 -0800 Subject: [PATCH] System.get API - Return current PHP + MySQL time --- api/v3/System.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/v3/System.php b/api/v3/System.php index 94b4384cad..64e6d0ae8b 100644 --- a/api/v3/System.php +++ b/api/v3/System.php @@ -182,12 +182,14 @@ function civicrm_api3_system_get($params) { 'uf' => CIVICRM_UF, // deprecated in favor of cms.type 'php' => array( 'version' => phpversion(), + 'time' => time(), 'tz' => date_default_timezone_get(), 'extensions' => get_loaded_extensions(), 'ini' => _civicrm_api3_system_get_redacted_ini(), ), 'mysql' => array( 'version' => CRM_Core_DAO::singleValueQuery('SELECT @@version'), + 'time' => CRM_Core_DAO::singleValueQuery('SELECT unix_timestamp()'), 'vars' => _civicrm_api3_system_get_redacted_mysql(), ), 'cms' => array( -- 2.25.1