Error Enter Valid date at cart price rule and save it db, after adding time in date picker in Magento 2.2.6 The Next CEO of Stack OverflowHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Date Time picker and time zone woesMagento 2.1.9 : Cart Rules (Please enter a valid date)How to implement Single Date and Time Picker in Magento 2Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsHow to override DatePicker of cart price rule and add time within it in, Magento 2.2.6

Are there languages with no euphemisms?

When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?

How should I support this large drywall patch?

How do spells that require an ability check vs. the caster's spell save DC work?

What does "Its cash flow is deeply negative" mean?

Grabbing quick drinks

Rotate a column

Can the Reverse Gravity spell affect the Meteor Swarm spell?

Unreliable Magic - Is it worth it?

Anatomically Correct Strange Women In Ponds Distributing Swords

Why do professional authors make "consistency" mistakes? And how to avoid them?

How can I quit an app using Terminal?

How long to clear the 'suck zone' of a turbofan after start is initiated?

Trouble understanding the speech of overseas colleagues

What do "high sea" and "carry" mean in this sentence?

Natural language into sentence logic

WOW air has ceased operation, can I get my tickets refunded?

How do I construct this japanese bowl?

How do I solve this limit?

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

Can a single photon have an energy density?

Return the Closest Prime Number

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Robert Sheckley short story about vacation spots being overwhelmed



Error Enter Valid date at cart price rule and save it db, after adding time in date picker in Magento 2.2.6



The Next CEO of Stack OverflowHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Date Time picker and time zone woesMagento 2.1.9 : Cart Rules (Please enter a valid date)How to implement Single Date and Time Picker in Magento 2Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsHow to override DatePicker of cart price rule and add time within it in, Magento 2.2.6










2















<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="rule_information" sortOrder="10">
<field name="from_date" formElement="date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="options" xsi:type="array">
<item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
<item name="timeFormat" xsi:type="string">HH:mm:ss</item>
<item name="showsTime" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
<field name="to_date" formElement="date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="options" xsi:type="array">
<item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
<item name="timeFormat" xsi:type="string">HH:mm:ss</item>
<item name="showsTime" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
</fieldset>
</form>


This is my sales_rule_form.xml
i changed dB column as VARCHAR/datetime, its showing invalid date, and how can i save it in db.










share|improve this question




























    2















    <?xml version="1.0" encoding="UTF-8"?>
    <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="rule_information" sortOrder="10">
    <field name="from_date" formElement="date">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="options" xsi:type="array">
    <item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
    <item name="timeFormat" xsi:type="string">HH:mm:ss</item>
    <item name="showsTime" xsi:type="boolean">true</item>
    </item>
    </item>
    </argument>
    </field>
    <field name="to_date" formElement="date">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="options" xsi:type="array">
    <item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
    <item name="timeFormat" xsi:type="string">HH:mm:ss</item>
    <item name="showsTime" xsi:type="boolean">true</item>
    </item>
    </item>
    </argument>
    </field>
    </fieldset>
    </form>


    This is my sales_rule_form.xml
    i changed dB column as VARCHAR/datetime, its showing invalid date, and how can i save it in db.










    share|improve this question


























      2












      2








      2








      <?xml version="1.0" encoding="UTF-8"?>
      <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
      <fieldset name="rule_information" sortOrder="10">
      <field name="from_date" formElement="date">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="options" xsi:type="array">
      <item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
      <item name="timeFormat" xsi:type="string">HH:mm:ss</item>
      <item name="showsTime" xsi:type="boolean">true</item>
      </item>
      </item>
      </argument>
      </field>
      <field name="to_date" formElement="date">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="options" xsi:type="array">
      <item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
      <item name="timeFormat" xsi:type="string">HH:mm:ss</item>
      <item name="showsTime" xsi:type="boolean">true</item>
      </item>
      </item>
      </argument>
      </field>
      </fieldset>
      </form>


      This is my sales_rule_form.xml
      i changed dB column as VARCHAR/datetime, its showing invalid date, and how can i save it in db.










      share|improve this question
















      <?xml version="1.0" encoding="UTF-8"?>
      <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
      <fieldset name="rule_information" sortOrder="10">
      <field name="from_date" formElement="date">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="options" xsi:type="array">
      <item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
      <item name="timeFormat" xsi:type="string">HH:mm:ss</item>
      <item name="showsTime" xsi:type="boolean">true</item>
      </item>
      </item>
      </argument>
      </field>
      <field name="to_date" formElement="date">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="options" xsi:type="array">
      <item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>
      <item name="timeFormat" xsi:type="string">HH:mm:ss</item>
      <item name="showsTime" xsi:type="boolean">true</item>
      </item>
      </item>
      </argument>
      </field>
      </fieldset>
      </form>


      This is my sales_rule_form.xml
      i changed dB column as VARCHAR/datetime, its showing invalid date, and how can i save it in db.







      magento2 database shopping-cart-price-rules magento2.2.6 datepicker






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 28 mins ago









      Teja Bhagavan Kollepara

      3,01241949




      3,01241949










      asked Feb 17 at 2:13









      Praveen NegimaniPraveen Negimani

      357




      357




















          1 Answer
          1






          active

          oldest

          votes


















          1














          This is a bug. Try following way for the fix:




          app/code/SR/MagentoCommunity/etc/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoUiComponentFormElementDataTypeDate">
          <plugin name="SR_MagentoCommunity::allow_format_from_config"
          type="SRMagentoCommunityPluginUiComponentFormElementDataTypeDate" sortOrder="1"/>
          </type>
          </config>



          app/code/SR/MagentoCommunity/Plugin/Ui/Component/Form/Element/DataType/Date.ph




          code>
          <?php
          namespace SRMagentoCommunityPluginUiComponentFormElementDataType;

          class Date

          public function aroundPrepare(
          MagentoUiComponentFormElementDataTypeDate $subject,
          Closure $proceed
          )
          $configOrig = $subject->getData('config');
          $proceed();
          $config = $subject->getData('config');
          if (isset($configOrig['options']) && isset($configOrig['options']['dateFormat']))
          $config['options']['dateFormat'] = $configOrig['options']['dateFormat'];


          if (isset($configOrig['options']) && isset($configOrig['options']['timeFormat']))
          $config['options']['timeFormat'] = $configOrig['options']['timeFormat'];


          $subject->setData('config', $config);




          [Update]




          app/code/SR/MagentoCommunity/etc/adminhtml/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesRuleControllerAdminhtmlPromoQuoteSave" type="SRMagentoCommunityControllerAdminhtmlPromoQuoteSave"/>
          </config>



          app/code/SR/MagentoCommunity/Controller/Adminhtml/Promo/Quote/Save.php





          <?php
          namespace SRMagentoCommunityControllerAdminhtmlPromoQuote;

          class Save extends MagentoSalesRuleControllerAdminhtmlPromoQuoteSave

          /**
          * @var MagentoFrameworkStdlibDateTimeFilterDateTime
          */
          private $dateTimeFilter;

          /**
          * Save constructor.
          *
          * @param MagentoBackendAppActionContext $context
          * @param MagentoFrameworkRegistry $coreRegistry
          * @param MagentoFrameworkAppResponseHttpFileFactory $fileFactory
          * @param MagentoFrameworkStdlibDateTimeFilterDate $dateFilter
          * @param MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          */
          public function __construct(
          MagentoBackendAppActionContext $context,
          MagentoFrameworkRegistry $coreRegistry,
          MagentoFrameworkAppResponseHttpFileFactory $fileFactory,
          MagentoFrameworkStdlibDateTimeFilterDate $dateFilter,
          MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          )
          parent::__construct($context, $coreRegistry, $fileFactory, $dateFilter);
          $this->dateTimeFilter = $dateTimeFilter;


          /**
          * Promo quote save action
          *
          * @return void
          * @SuppressWarnings(PHPMD.CyclomaticComplexity)
          * @SuppressWarnings(PHPMD.NPathComplexity)
          */
          public function execute()

          if ($this->getRequest()->getPostValue())
          try
          /** @var $model MagentoSalesRuleModelRule */
          $model = $this->_objectManager->create(MagentoSalesRuleModelRule::class);
          $this->_eventManager->dispatch(
          'adminhtml_controller_salesrule_prepare_save',
          ['request' => $this->getRequest()]
          );
          $data = $this->getRequest()->getPostValue();

          $filterValues = ['from_date' => $this->dateTimeFilter];
          if ($this->getRequest()->getParam('to_date'))
          $filterValues['to_date'] = $this->dateTimeFilter;

          $inputFilter = new Zend_Filter_Input(
          $filterValues,
          [],
          $data
          );
          $data = $inputFilter->getUnescaped();

          $id = $this->getRequest()->getParam('rule_id');
          if ($id)
          $model->load($id);
          if ($id != $model->getId())
          throw new MagentoFrameworkExceptionLocalizedException(__('The wrong rule is specified.'));



          $session = $this->_objectManager->get(MagentoBackendModelSession::class);

          $validateResult = $model->validateData(new MagentoFrameworkDataObject($data));
          if ($validateResult !== true)
          foreach ($validateResult as $errorMessage)
          $this->messageManager->addErrorMessage($errorMessage);

          $session->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;


          if (isset(
          $data['simple_action']
          ) && $data['simple_action'] == 'by_percent' && isset(
          $data['discount_amount']
          )
          )
          $data['discount_amount'] = min(100, $data['discount_amount']);

          if (isset($data['rule']['conditions']))
          $data['conditions'] = $data['rule']['conditions'];

          if (isset($data['rule']['actions']))
          $data['actions'] = $data['rule']['actions'];

          unset($data['rule']);
          $model->loadPost($data);

          $useAutoGeneration = (int)(
          !empty($data['use_auto_generation']) && $data['use_auto_generation'] !== 'false'
          );
          $model->setUseAutoGeneration($useAutoGeneration);

          $session->setPageData($model->getData());

          $model->save();
          $this->messageManager->addSuccessMessage(__('You saved the rule.'));
          $session->setPageData(false);
          if ($this->getRequest()->getParam('back'))
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;

          $this->_redirect('sales_rule/*/');
          return;
          catch (MagentoFrameworkExceptionLocalizedException $e)
          $this->messageManager->addErrorMessage($e->getMessage());
          $id = (int)$this->getRequest()->getParam('rule_id');
          if (!empty($id))
          $this->_redirect('sales_rule/*/edit', ['id' => $id]);
          else
          $this->_redirect('sales_rule/*/new');

          return;
          catch (Exception $e)
          $this->messageManager->addErrorMessage(
          __('Something went wrong while saving the rule data. Please review the error log.')
          );
          $this->_objectManager->get(PsrLogLoggerInterface::class)->critical($e);
          $this->_objectManager->get(MagentoBackendModelSession::class)->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $this->getRequest()->getParam('rule_id')]);
          return;


          $this->_redirect('sales_rule/*/');







          share|improve this answer

























          • Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

            – Praveen Negimani
            Feb 18 at 5:14












          • Can you show me the error from the log?

            – Sohel Rana
            Feb 18 at 5:16











          • "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

            – Praveen Negimani
            Feb 18 at 5:18












          • This is not what I am asking. Find log from system.log or exception.log or reports?

            – Sohel Rana
            Feb 18 at 5:20











          • [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

            – Praveen Negimani
            Feb 18 at 5:24












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f262108%2ferror-enter-valid-date-at-cart-price-rule-and-save-it-db-after-adding-time-in-d%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          This is a bug. Try following way for the fix:




          app/code/SR/MagentoCommunity/etc/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoUiComponentFormElementDataTypeDate">
          <plugin name="SR_MagentoCommunity::allow_format_from_config"
          type="SRMagentoCommunityPluginUiComponentFormElementDataTypeDate" sortOrder="1"/>
          </type>
          </config>



          app/code/SR/MagentoCommunity/Plugin/Ui/Component/Form/Element/DataType/Date.ph




          code>
          <?php
          namespace SRMagentoCommunityPluginUiComponentFormElementDataType;

          class Date

          public function aroundPrepare(
          MagentoUiComponentFormElementDataTypeDate $subject,
          Closure $proceed
          )
          $configOrig = $subject->getData('config');
          $proceed();
          $config = $subject->getData('config');
          if (isset($configOrig['options']) && isset($configOrig['options']['dateFormat']))
          $config['options']['dateFormat'] = $configOrig['options']['dateFormat'];


          if (isset($configOrig['options']) && isset($configOrig['options']['timeFormat']))
          $config['options']['timeFormat'] = $configOrig['options']['timeFormat'];


          $subject->setData('config', $config);




          [Update]




          app/code/SR/MagentoCommunity/etc/adminhtml/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesRuleControllerAdminhtmlPromoQuoteSave" type="SRMagentoCommunityControllerAdminhtmlPromoQuoteSave"/>
          </config>



          app/code/SR/MagentoCommunity/Controller/Adminhtml/Promo/Quote/Save.php





          <?php
          namespace SRMagentoCommunityControllerAdminhtmlPromoQuote;

          class Save extends MagentoSalesRuleControllerAdminhtmlPromoQuoteSave

          /**
          * @var MagentoFrameworkStdlibDateTimeFilterDateTime
          */
          private $dateTimeFilter;

          /**
          * Save constructor.
          *
          * @param MagentoBackendAppActionContext $context
          * @param MagentoFrameworkRegistry $coreRegistry
          * @param MagentoFrameworkAppResponseHttpFileFactory $fileFactory
          * @param MagentoFrameworkStdlibDateTimeFilterDate $dateFilter
          * @param MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          */
          public function __construct(
          MagentoBackendAppActionContext $context,
          MagentoFrameworkRegistry $coreRegistry,
          MagentoFrameworkAppResponseHttpFileFactory $fileFactory,
          MagentoFrameworkStdlibDateTimeFilterDate $dateFilter,
          MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          )
          parent::__construct($context, $coreRegistry, $fileFactory, $dateFilter);
          $this->dateTimeFilter = $dateTimeFilter;


          /**
          * Promo quote save action
          *
          * @return void
          * @SuppressWarnings(PHPMD.CyclomaticComplexity)
          * @SuppressWarnings(PHPMD.NPathComplexity)
          */
          public function execute()

          if ($this->getRequest()->getPostValue())
          try
          /** @var $model MagentoSalesRuleModelRule */
          $model = $this->_objectManager->create(MagentoSalesRuleModelRule::class);
          $this->_eventManager->dispatch(
          'adminhtml_controller_salesrule_prepare_save',
          ['request' => $this->getRequest()]
          );
          $data = $this->getRequest()->getPostValue();

          $filterValues = ['from_date' => $this->dateTimeFilter];
          if ($this->getRequest()->getParam('to_date'))
          $filterValues['to_date'] = $this->dateTimeFilter;

          $inputFilter = new Zend_Filter_Input(
          $filterValues,
          [],
          $data
          );
          $data = $inputFilter->getUnescaped();

          $id = $this->getRequest()->getParam('rule_id');
          if ($id)
          $model->load($id);
          if ($id != $model->getId())
          throw new MagentoFrameworkExceptionLocalizedException(__('The wrong rule is specified.'));



          $session = $this->_objectManager->get(MagentoBackendModelSession::class);

          $validateResult = $model->validateData(new MagentoFrameworkDataObject($data));
          if ($validateResult !== true)
          foreach ($validateResult as $errorMessage)
          $this->messageManager->addErrorMessage($errorMessage);

          $session->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;


          if (isset(
          $data['simple_action']
          ) && $data['simple_action'] == 'by_percent' && isset(
          $data['discount_amount']
          )
          )
          $data['discount_amount'] = min(100, $data['discount_amount']);

          if (isset($data['rule']['conditions']))
          $data['conditions'] = $data['rule']['conditions'];

          if (isset($data['rule']['actions']))
          $data['actions'] = $data['rule']['actions'];

          unset($data['rule']);
          $model->loadPost($data);

          $useAutoGeneration = (int)(
          !empty($data['use_auto_generation']) && $data['use_auto_generation'] !== 'false'
          );
          $model->setUseAutoGeneration($useAutoGeneration);

          $session->setPageData($model->getData());

          $model->save();
          $this->messageManager->addSuccessMessage(__('You saved the rule.'));
          $session->setPageData(false);
          if ($this->getRequest()->getParam('back'))
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;

          $this->_redirect('sales_rule/*/');
          return;
          catch (MagentoFrameworkExceptionLocalizedException $e)
          $this->messageManager->addErrorMessage($e->getMessage());
          $id = (int)$this->getRequest()->getParam('rule_id');
          if (!empty($id))
          $this->_redirect('sales_rule/*/edit', ['id' => $id]);
          else
          $this->_redirect('sales_rule/*/new');

          return;
          catch (Exception $e)
          $this->messageManager->addErrorMessage(
          __('Something went wrong while saving the rule data. Please review the error log.')
          );
          $this->_objectManager->get(PsrLogLoggerInterface::class)->critical($e);
          $this->_objectManager->get(MagentoBackendModelSession::class)->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $this->getRequest()->getParam('rule_id')]);
          return;


          $this->_redirect('sales_rule/*/');







          share|improve this answer

























          • Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

            – Praveen Negimani
            Feb 18 at 5:14












          • Can you show me the error from the log?

            – Sohel Rana
            Feb 18 at 5:16











          • "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

            – Praveen Negimani
            Feb 18 at 5:18












          • This is not what I am asking. Find log from system.log or exception.log or reports?

            – Sohel Rana
            Feb 18 at 5:20











          • [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

            – Praveen Negimani
            Feb 18 at 5:24
















          1














          This is a bug. Try following way for the fix:




          app/code/SR/MagentoCommunity/etc/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoUiComponentFormElementDataTypeDate">
          <plugin name="SR_MagentoCommunity::allow_format_from_config"
          type="SRMagentoCommunityPluginUiComponentFormElementDataTypeDate" sortOrder="1"/>
          </type>
          </config>



          app/code/SR/MagentoCommunity/Plugin/Ui/Component/Form/Element/DataType/Date.ph




          code>
          <?php
          namespace SRMagentoCommunityPluginUiComponentFormElementDataType;

          class Date

          public function aroundPrepare(
          MagentoUiComponentFormElementDataTypeDate $subject,
          Closure $proceed
          )
          $configOrig = $subject->getData('config');
          $proceed();
          $config = $subject->getData('config');
          if (isset($configOrig['options']) && isset($configOrig['options']['dateFormat']))
          $config['options']['dateFormat'] = $configOrig['options']['dateFormat'];


          if (isset($configOrig['options']) && isset($configOrig['options']['timeFormat']))
          $config['options']['timeFormat'] = $configOrig['options']['timeFormat'];


          $subject->setData('config', $config);




          [Update]




          app/code/SR/MagentoCommunity/etc/adminhtml/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesRuleControllerAdminhtmlPromoQuoteSave" type="SRMagentoCommunityControllerAdminhtmlPromoQuoteSave"/>
          </config>



          app/code/SR/MagentoCommunity/Controller/Adminhtml/Promo/Quote/Save.php





          <?php
          namespace SRMagentoCommunityControllerAdminhtmlPromoQuote;

          class Save extends MagentoSalesRuleControllerAdminhtmlPromoQuoteSave

          /**
          * @var MagentoFrameworkStdlibDateTimeFilterDateTime
          */
          private $dateTimeFilter;

          /**
          * Save constructor.
          *
          * @param MagentoBackendAppActionContext $context
          * @param MagentoFrameworkRegistry $coreRegistry
          * @param MagentoFrameworkAppResponseHttpFileFactory $fileFactory
          * @param MagentoFrameworkStdlibDateTimeFilterDate $dateFilter
          * @param MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          */
          public function __construct(
          MagentoBackendAppActionContext $context,
          MagentoFrameworkRegistry $coreRegistry,
          MagentoFrameworkAppResponseHttpFileFactory $fileFactory,
          MagentoFrameworkStdlibDateTimeFilterDate $dateFilter,
          MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          )
          parent::__construct($context, $coreRegistry, $fileFactory, $dateFilter);
          $this->dateTimeFilter = $dateTimeFilter;


          /**
          * Promo quote save action
          *
          * @return void
          * @SuppressWarnings(PHPMD.CyclomaticComplexity)
          * @SuppressWarnings(PHPMD.NPathComplexity)
          */
          public function execute()

          if ($this->getRequest()->getPostValue())
          try
          /** @var $model MagentoSalesRuleModelRule */
          $model = $this->_objectManager->create(MagentoSalesRuleModelRule::class);
          $this->_eventManager->dispatch(
          'adminhtml_controller_salesrule_prepare_save',
          ['request' => $this->getRequest()]
          );
          $data = $this->getRequest()->getPostValue();

          $filterValues = ['from_date' => $this->dateTimeFilter];
          if ($this->getRequest()->getParam('to_date'))
          $filterValues['to_date'] = $this->dateTimeFilter;

          $inputFilter = new Zend_Filter_Input(
          $filterValues,
          [],
          $data
          );
          $data = $inputFilter->getUnescaped();

          $id = $this->getRequest()->getParam('rule_id');
          if ($id)
          $model->load($id);
          if ($id != $model->getId())
          throw new MagentoFrameworkExceptionLocalizedException(__('The wrong rule is specified.'));



          $session = $this->_objectManager->get(MagentoBackendModelSession::class);

          $validateResult = $model->validateData(new MagentoFrameworkDataObject($data));
          if ($validateResult !== true)
          foreach ($validateResult as $errorMessage)
          $this->messageManager->addErrorMessage($errorMessage);

          $session->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;


          if (isset(
          $data['simple_action']
          ) && $data['simple_action'] == 'by_percent' && isset(
          $data['discount_amount']
          )
          )
          $data['discount_amount'] = min(100, $data['discount_amount']);

          if (isset($data['rule']['conditions']))
          $data['conditions'] = $data['rule']['conditions'];

          if (isset($data['rule']['actions']))
          $data['actions'] = $data['rule']['actions'];

          unset($data['rule']);
          $model->loadPost($data);

          $useAutoGeneration = (int)(
          !empty($data['use_auto_generation']) && $data['use_auto_generation'] !== 'false'
          );
          $model->setUseAutoGeneration($useAutoGeneration);

          $session->setPageData($model->getData());

          $model->save();
          $this->messageManager->addSuccessMessage(__('You saved the rule.'));
          $session->setPageData(false);
          if ($this->getRequest()->getParam('back'))
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;

          $this->_redirect('sales_rule/*/');
          return;
          catch (MagentoFrameworkExceptionLocalizedException $e)
          $this->messageManager->addErrorMessage($e->getMessage());
          $id = (int)$this->getRequest()->getParam('rule_id');
          if (!empty($id))
          $this->_redirect('sales_rule/*/edit', ['id' => $id]);
          else
          $this->_redirect('sales_rule/*/new');

          return;
          catch (Exception $e)
          $this->messageManager->addErrorMessage(
          __('Something went wrong while saving the rule data. Please review the error log.')
          );
          $this->_objectManager->get(PsrLogLoggerInterface::class)->critical($e);
          $this->_objectManager->get(MagentoBackendModelSession::class)->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $this->getRequest()->getParam('rule_id')]);
          return;


          $this->_redirect('sales_rule/*/');







          share|improve this answer

























          • Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

            – Praveen Negimani
            Feb 18 at 5:14












          • Can you show me the error from the log?

            – Sohel Rana
            Feb 18 at 5:16











          • "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

            – Praveen Negimani
            Feb 18 at 5:18












          • This is not what I am asking. Find log from system.log or exception.log or reports?

            – Sohel Rana
            Feb 18 at 5:20











          • [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

            – Praveen Negimani
            Feb 18 at 5:24














          1












          1








          1







          This is a bug. Try following way for the fix:




          app/code/SR/MagentoCommunity/etc/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoUiComponentFormElementDataTypeDate">
          <plugin name="SR_MagentoCommunity::allow_format_from_config"
          type="SRMagentoCommunityPluginUiComponentFormElementDataTypeDate" sortOrder="1"/>
          </type>
          </config>



          app/code/SR/MagentoCommunity/Plugin/Ui/Component/Form/Element/DataType/Date.ph




          code>
          <?php
          namespace SRMagentoCommunityPluginUiComponentFormElementDataType;

          class Date

          public function aroundPrepare(
          MagentoUiComponentFormElementDataTypeDate $subject,
          Closure $proceed
          )
          $configOrig = $subject->getData('config');
          $proceed();
          $config = $subject->getData('config');
          if (isset($configOrig['options']) && isset($configOrig['options']['dateFormat']))
          $config['options']['dateFormat'] = $configOrig['options']['dateFormat'];


          if (isset($configOrig['options']) && isset($configOrig['options']['timeFormat']))
          $config['options']['timeFormat'] = $configOrig['options']['timeFormat'];


          $subject->setData('config', $config);




          [Update]




          app/code/SR/MagentoCommunity/etc/adminhtml/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesRuleControllerAdminhtmlPromoQuoteSave" type="SRMagentoCommunityControllerAdminhtmlPromoQuoteSave"/>
          </config>



          app/code/SR/MagentoCommunity/Controller/Adminhtml/Promo/Quote/Save.php





          <?php
          namespace SRMagentoCommunityControllerAdminhtmlPromoQuote;

          class Save extends MagentoSalesRuleControllerAdminhtmlPromoQuoteSave

          /**
          * @var MagentoFrameworkStdlibDateTimeFilterDateTime
          */
          private $dateTimeFilter;

          /**
          * Save constructor.
          *
          * @param MagentoBackendAppActionContext $context
          * @param MagentoFrameworkRegistry $coreRegistry
          * @param MagentoFrameworkAppResponseHttpFileFactory $fileFactory
          * @param MagentoFrameworkStdlibDateTimeFilterDate $dateFilter
          * @param MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          */
          public function __construct(
          MagentoBackendAppActionContext $context,
          MagentoFrameworkRegistry $coreRegistry,
          MagentoFrameworkAppResponseHttpFileFactory $fileFactory,
          MagentoFrameworkStdlibDateTimeFilterDate $dateFilter,
          MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          )
          parent::__construct($context, $coreRegistry, $fileFactory, $dateFilter);
          $this->dateTimeFilter = $dateTimeFilter;


          /**
          * Promo quote save action
          *
          * @return void
          * @SuppressWarnings(PHPMD.CyclomaticComplexity)
          * @SuppressWarnings(PHPMD.NPathComplexity)
          */
          public function execute()

          if ($this->getRequest()->getPostValue())
          try
          /** @var $model MagentoSalesRuleModelRule */
          $model = $this->_objectManager->create(MagentoSalesRuleModelRule::class);
          $this->_eventManager->dispatch(
          'adminhtml_controller_salesrule_prepare_save',
          ['request' => $this->getRequest()]
          );
          $data = $this->getRequest()->getPostValue();

          $filterValues = ['from_date' => $this->dateTimeFilter];
          if ($this->getRequest()->getParam('to_date'))
          $filterValues['to_date'] = $this->dateTimeFilter;

          $inputFilter = new Zend_Filter_Input(
          $filterValues,
          [],
          $data
          );
          $data = $inputFilter->getUnescaped();

          $id = $this->getRequest()->getParam('rule_id');
          if ($id)
          $model->load($id);
          if ($id != $model->getId())
          throw new MagentoFrameworkExceptionLocalizedException(__('The wrong rule is specified.'));



          $session = $this->_objectManager->get(MagentoBackendModelSession::class);

          $validateResult = $model->validateData(new MagentoFrameworkDataObject($data));
          if ($validateResult !== true)
          foreach ($validateResult as $errorMessage)
          $this->messageManager->addErrorMessage($errorMessage);

          $session->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;


          if (isset(
          $data['simple_action']
          ) && $data['simple_action'] == 'by_percent' && isset(
          $data['discount_amount']
          )
          )
          $data['discount_amount'] = min(100, $data['discount_amount']);

          if (isset($data['rule']['conditions']))
          $data['conditions'] = $data['rule']['conditions'];

          if (isset($data['rule']['actions']))
          $data['actions'] = $data['rule']['actions'];

          unset($data['rule']);
          $model->loadPost($data);

          $useAutoGeneration = (int)(
          !empty($data['use_auto_generation']) && $data['use_auto_generation'] !== 'false'
          );
          $model->setUseAutoGeneration($useAutoGeneration);

          $session->setPageData($model->getData());

          $model->save();
          $this->messageManager->addSuccessMessage(__('You saved the rule.'));
          $session->setPageData(false);
          if ($this->getRequest()->getParam('back'))
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;

          $this->_redirect('sales_rule/*/');
          return;
          catch (MagentoFrameworkExceptionLocalizedException $e)
          $this->messageManager->addErrorMessage($e->getMessage());
          $id = (int)$this->getRequest()->getParam('rule_id');
          if (!empty($id))
          $this->_redirect('sales_rule/*/edit', ['id' => $id]);
          else
          $this->_redirect('sales_rule/*/new');

          return;
          catch (Exception $e)
          $this->messageManager->addErrorMessage(
          __('Something went wrong while saving the rule data. Please review the error log.')
          );
          $this->_objectManager->get(PsrLogLoggerInterface::class)->critical($e);
          $this->_objectManager->get(MagentoBackendModelSession::class)->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $this->getRequest()->getParam('rule_id')]);
          return;


          $this->_redirect('sales_rule/*/');







          share|improve this answer















          This is a bug. Try following way for the fix:




          app/code/SR/MagentoCommunity/etc/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoUiComponentFormElementDataTypeDate">
          <plugin name="SR_MagentoCommunity::allow_format_from_config"
          type="SRMagentoCommunityPluginUiComponentFormElementDataTypeDate" sortOrder="1"/>
          </type>
          </config>



          app/code/SR/MagentoCommunity/Plugin/Ui/Component/Form/Element/DataType/Date.ph




          code>
          <?php
          namespace SRMagentoCommunityPluginUiComponentFormElementDataType;

          class Date

          public function aroundPrepare(
          MagentoUiComponentFormElementDataTypeDate $subject,
          Closure $proceed
          )
          $configOrig = $subject->getData('config');
          $proceed();
          $config = $subject->getData('config');
          if (isset($configOrig['options']) && isset($configOrig['options']['dateFormat']))
          $config['options']['dateFormat'] = $configOrig['options']['dateFormat'];


          if (isset($configOrig['options']) && isset($configOrig['options']['timeFormat']))
          $config['options']['timeFormat'] = $configOrig['options']['timeFormat'];


          $subject->setData('config', $config);




          [Update]




          app/code/SR/MagentoCommunity/etc/adminhtml/di.xml





          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesRuleControllerAdminhtmlPromoQuoteSave" type="SRMagentoCommunityControllerAdminhtmlPromoQuoteSave"/>
          </config>



          app/code/SR/MagentoCommunity/Controller/Adminhtml/Promo/Quote/Save.php





          <?php
          namespace SRMagentoCommunityControllerAdminhtmlPromoQuote;

          class Save extends MagentoSalesRuleControllerAdminhtmlPromoQuoteSave

          /**
          * @var MagentoFrameworkStdlibDateTimeFilterDateTime
          */
          private $dateTimeFilter;

          /**
          * Save constructor.
          *
          * @param MagentoBackendAppActionContext $context
          * @param MagentoFrameworkRegistry $coreRegistry
          * @param MagentoFrameworkAppResponseHttpFileFactory $fileFactory
          * @param MagentoFrameworkStdlibDateTimeFilterDate $dateFilter
          * @param MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          */
          public function __construct(
          MagentoBackendAppActionContext $context,
          MagentoFrameworkRegistry $coreRegistry,
          MagentoFrameworkAppResponseHttpFileFactory $fileFactory,
          MagentoFrameworkStdlibDateTimeFilterDate $dateFilter,
          MagentoFrameworkStdlibDateTimeFilterDateTime $dateTimeFilter
          )
          parent::__construct($context, $coreRegistry, $fileFactory, $dateFilter);
          $this->dateTimeFilter = $dateTimeFilter;


          /**
          * Promo quote save action
          *
          * @return void
          * @SuppressWarnings(PHPMD.CyclomaticComplexity)
          * @SuppressWarnings(PHPMD.NPathComplexity)
          */
          public function execute()

          if ($this->getRequest()->getPostValue())
          try
          /** @var $model MagentoSalesRuleModelRule */
          $model = $this->_objectManager->create(MagentoSalesRuleModelRule::class);
          $this->_eventManager->dispatch(
          'adminhtml_controller_salesrule_prepare_save',
          ['request' => $this->getRequest()]
          );
          $data = $this->getRequest()->getPostValue();

          $filterValues = ['from_date' => $this->dateTimeFilter];
          if ($this->getRequest()->getParam('to_date'))
          $filterValues['to_date'] = $this->dateTimeFilter;

          $inputFilter = new Zend_Filter_Input(
          $filterValues,
          [],
          $data
          );
          $data = $inputFilter->getUnescaped();

          $id = $this->getRequest()->getParam('rule_id');
          if ($id)
          $model->load($id);
          if ($id != $model->getId())
          throw new MagentoFrameworkExceptionLocalizedException(__('The wrong rule is specified.'));



          $session = $this->_objectManager->get(MagentoBackendModelSession::class);

          $validateResult = $model->validateData(new MagentoFrameworkDataObject($data));
          if ($validateResult !== true)
          foreach ($validateResult as $errorMessage)
          $this->messageManager->addErrorMessage($errorMessage);

          $session->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;


          if (isset(
          $data['simple_action']
          ) && $data['simple_action'] == 'by_percent' && isset(
          $data['discount_amount']
          )
          )
          $data['discount_amount'] = min(100, $data['discount_amount']);

          if (isset($data['rule']['conditions']))
          $data['conditions'] = $data['rule']['conditions'];

          if (isset($data['rule']['actions']))
          $data['actions'] = $data['rule']['actions'];

          unset($data['rule']);
          $model->loadPost($data);

          $useAutoGeneration = (int)(
          !empty($data['use_auto_generation']) && $data['use_auto_generation'] !== 'false'
          );
          $model->setUseAutoGeneration($useAutoGeneration);

          $session->setPageData($model->getData());

          $model->save();
          $this->messageManager->addSuccessMessage(__('You saved the rule.'));
          $session->setPageData(false);
          if ($this->getRequest()->getParam('back'))
          $this->_redirect('sales_rule/*/edit', ['id' => $model->getId()]);
          return;

          $this->_redirect('sales_rule/*/');
          return;
          catch (MagentoFrameworkExceptionLocalizedException $e)
          $this->messageManager->addErrorMessage($e->getMessage());
          $id = (int)$this->getRequest()->getParam('rule_id');
          if (!empty($id))
          $this->_redirect('sales_rule/*/edit', ['id' => $id]);
          else
          $this->_redirect('sales_rule/*/new');

          return;
          catch (Exception $e)
          $this->messageManager->addErrorMessage(
          __('Something went wrong while saving the rule data. Please review the error log.')
          );
          $this->_objectManager->get(PsrLogLoggerInterface::class)->critical($e);
          $this->_objectManager->get(MagentoBackendModelSession::class)->setPageData($data);
          $this->_redirect('sales_rule/*/edit', ['id' => $this->getRequest()->getParam('rule_id')]);
          return;


          $this->_redirect('sales_rule/*/');








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 18 at 11:11

























          answered Feb 17 at 5:00









          Sohel RanaSohel Rana

          22.9k34460




          22.9k34460












          • Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

            – Praveen Negimani
            Feb 18 at 5:14












          • Can you show me the error from the log?

            – Sohel Rana
            Feb 18 at 5:16











          • "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

            – Praveen Negimani
            Feb 18 at 5:18












          • This is not what I am asking. Find log from system.log or exception.log or reports?

            – Sohel Rana
            Feb 18 at 5:20











          • [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

            – Praveen Negimani
            Feb 18 at 5:24


















          • Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

            – Praveen Negimani
            Feb 18 at 5:14












          • Can you show me the error from the log?

            – Sohel Rana
            Feb 18 at 5:16











          • "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

            – Praveen Negimani
            Feb 18 at 5:18












          • This is not what I am asking. Find log from system.log or exception.log or reports?

            – Sohel Rana
            Feb 18 at 5:20











          • [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

            – Praveen Negimani
            Feb 18 at 5:24

















          Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

          – Praveen Negimani
          Feb 18 at 5:14






          Sohel Rana, Thank you for your support. Here it fixed validation part. but its not saving it giving error Something went wrong while saving the rule data. Please review the error log. but no error in console & Network.

          – Praveen Negimani
          Feb 18 at 5:14














          Can you show me the error from the log?

          – Sohel Rana
          Feb 18 at 5:16





          Can you show me the error from the log?

          – Sohel Rana
          Feb 18 at 5:16













          "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

          – Praveen Negimani
          Feb 18 at 5:18






          "Navigated to 127.0.0.1/Magento1/admin/sales_rule/promo_quote/edit/key/… jquery-migrate.js:21 JQMIGRATE: Logging is active".. No error here

          – Praveen Negimani
          Feb 18 at 5:18














          This is not what I am asking. Find log from system.log or exception.log or reports?

          – Sohel Rana
          Feb 18 at 5:20





          This is not what I am asking. Find log from system.log or exception.log or reports?

          – Sohel Rana
          Feb 18 at 5:20













          [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

          – Praveen Negimani
          Feb 18 at 5:24






          [2019-02-18 05:23:13] main.CRITICAL: Invalid input date format '2019-02-26T05:21:00.000Z' "exception":"[object] (Exception(code: 0): Invalid input date format '2019-02-26T05:21:00.000Z' at C:\xampp\htdocs\Magento1\vendor\magento\framework\Stdlib\DateTime\Filter\Date.php:69)" [] Exception log

          – Praveen Negimani
          Feb 18 at 5:24


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f262108%2ferror-enter-valid-date-at-cart-price-rule-and-save-it-db-after-adding-time-in-d%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Nidaros erkebispedøme

          Birsay

          Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?