Commit a1558fe5 authored by Chenu Denis's avatar Chenu Denis

[fix] Return corrected date with timeadjust in settings

parent 7d700da3
......@@ -124,8 +124,10 @@ class maintenanceMode extends \ls\pluginmanager\PluginBase {
/* Help of maintenance : add actual date */
$oDateTimeConverter = new Date_Time_Converter(date("Y-m-d H:i"), "Y-m-d H:i");
$dateTimeNow=dateShift(date('Y-m-d H:i:s'), "Y-m-d H:i:s",Yii::app()->getConfig("timeadjust"));
$oDateTimeConverter = new Date_Time_Converter($dateTimeNow, "Y-m-d H:i");
$dateTimeNow=$oDateTimeConverter->convert($aDateFormatData['phpdate']." H:i");
$pluginSettings['dateTime']['help']=sprintf($this->_translate("Actual date/time : %s. Empty disable maintenance mode."),$dateTimeNow);
/* Help on admin, but not super admin */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment