Error in badge form

  • Posts: 193
  • Thank you received: 76
8 years 9 months ago #230291

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- Error-message(debug-mod must be tuned on) -- : DateTime::__construct(): Failed to parse time string (18 február 2016 05:04)

When I try to save badge form with Start date set I get this error:
DateTime::__construct(): Failed to parse time string (18 február 2016 05:04)

In file administrator\components\com_hikashop\views\badge\tmpl\form.php on line 48

<?php echo JHTML::_('calendar', (@$this->element->badge_start?hikashop_getDate(@$this->element->badge_start,'%d %B %Y %H:%M'):''), 'data[badge][badge_start]','badge_start','%Y-%m-%d %H:%M',array('size'=>'20')); ?>

should be
<?php echo JHTML::_('calendar', (@$this->element->badge_start?hikashop_getDate(@$this->element->badge_start,'%Y-%m-%d %H:%M'):''), 'data[badge][badge_start]','badge_start','%Y-%m-%d %H:%M',array('size'=>'20')); ?>

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
8 years 9 months ago #230336

Hi,

Thank you for your feedback. We'll include the fix.

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds
Powered by Kunena Forum