Badge edit Date error message

  • Posts: 3
  • Thank you received: 0
10 years 3 weeks ago #177680

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.5
-- PHP version -- : 5.3.28
-- Error-message(debug-mod must be tuned on) -- : 0 DateTime::__construct() [datetime.--construct]: Failed to parse time string (27 octobre 2014 12:43) at position 6 (o): The timezone could not be found in the database

I get this error message in the admin backend when trying to edit a Badge but only when the admin user is using the backend in french? When the user is working in english, it works fine.

0 DateTime::__construct() [<a href='datetime.--construct'>datetime.--construct</a>]: Failed to parse time string (27 octobre 2014 12:43) at position 6 (o): The timezone could not be found in the database

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 3 weeks ago #177683

Hi,

Please edit the file "administrator/components/com_hikashop/views/badge/tmpl/form.php" and replace

<?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')); ?>
By
<?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')); ?>

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

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: support

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

Time to create page: 0.053 seconds
Powered by Kunena Forum