Commit 5850b2e8 authored by Chenu Denis's avatar Chenu Denis

[fix] SQL throw error about truncated data : date format must be "Y-m-d H:i"

[fix] Action on button copy didn't work
parent 814db18b
......@@ -5,7 +5,7 @@
* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat (MIT)
*/
$("[data-moveto='surveybarid']").appendTo("#surveybarid > .row >.col-md-12");
$("[data-click-name]").on('click',function(e){
$(document).on('click',"[data-click-name='savesendMailCron']",function(e){
e.preventDefault();
$("button[name='"+$(this).data('click-name')+"'][value='"+$(this).data('click-value')+"']").trigger("click");
$("button[name='savesendMailCron'][value='"+$(this).data('click-value')+"']").trigger("click");
});
......@@ -8,7 +8,7 @@
* @copyright 2016 AXA Insurance (Gulf) B.S.C. <http://www.axa-gulf.com>
* @copyright 2016-2018 Extract Recherche Marketing <https://dialogs.ca>
* @license AGPL v3
* @version 3.1.1
* @version 3.1.2
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......@@ -408,10 +408,10 @@ class sendMailCron extends PluginBase
/**
* Return the date fixed by config (SQL format)
* @param string $date in SQL format
* @param string $dformat in SQL format
* @param string $dformat in token opr SQL format
* @return string
*/
private static function _dateShifted($date, $dformat="Y-m-d H:i:s")
private static function _dateShifted($date, $dformat="Y-m-d H:i")
{
if(Yii::app()->getConfig("timeadjust",false)===false)
{
......
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