<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
// expected calc'd end date
$endDate = date('Y-m-d', mktime(0, 0, 0, 3, 31, $nextYear));
- $configVars = new CRM_Core_Config_Variables();
foreach (array(
'joinDate',
'startDate',
'endDate',
) as $date) {
- $$date = CRM_Utils_Date::customFormat($$date, $configVars->dateformatFull);
+ $$date = CRM_Utils_Date::customFormat($$date, $this->webtestGetSetting('dateformatFull'));
}
$query = "
// expected calc'd end date
$endDate = date('Y-m-d', mktime(0, 0, 0, 8, 31, $currentYear + 2));
- $configVars = new CRM_Core_Config_Variables();
foreach (array(
'joinDate',
'startDate',
'endDate',
) as $date) {
- $$date = CRM_Utils_Date::customFormat($$date, $configVars->dateformatFull);
+ $$date = CRM_Utils_Date::customFormat($$date, $this->webtestGetSetting('dateformatFull'));
}
$query = "
$joinDate = date('Y-m-d', mktime(0, 0, 0, 11, 15, $currentYear));
$startDate = date('Y-m-d', mktime(0, 0, 0, 1, 1, $currentYear));
$endDate = date('Y-m-d', mktime(0, 0, 0, 12, 31, $nextYear));
- $configVars = new CRM_Core_Config_Variables();
foreach (array(
'joinDate',
'startDate',
'endDate',
) as $date) {
- $$date = CRM_Utils_Date::customFormat($$date, $configVars->dateformatFull);
+ $$date = CRM_Utils_Date::customFormat($$date, $this->webtestGetSetting('dateformatFull'));
}
$query = "
// expected calc'd start and end dates
$startDate = date('Y-m-d', mktime(0, 0, 0, 1, 1, $currentYear));
$endDate = date('Y-m-d', mktime(0, 0, 0, 12, 31, $currentYear));
- $configVars = new CRM_Core_Config_Variables();
foreach (array(
'joinDate',
'startDate',
'endDate',
) as $date) {
- $$date = CRM_Utils_Date::customFormat($$date, $configVars->dateformatFull);
+ $$date = CRM_Utils_Date::customFormat($$date, $this->webtestGetSetting('dateformatFull'));
}
$query = "