From 40278a8edcef12eb1ef0108658cab77e87a997d8 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 7bdfe299e3..80aac09c86 100644 --- a/api/v3/System.php +++ b/api/v3/System.php @@ -234,12 +234,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