[Skip to main content](#vessel-content)

#   Error in badge form

##

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile") Topic Author
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 9 months ago [\#230291](#230291) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  *[Error in badge form](/forum/3-bug-report/882370-error-in-badge-form#230291 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- Error-message(debug-mod must be tuned on) -- : DateTime::&#95;&#95;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::&#95;&#95;construct(): Failed to parse time string (18 február 2016 05:04)  In file administrator&#92;components&#92;com&#95;hikashop&#92;views&#92;badge&#92;tmpl&#92;form.php on line 48  should be")* was created by *[korzo](/forum/user/34428-korzo "View korzo's Profile")*

-- 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
Code:

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

should be Code:

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODIzNzAtZXJyb3ItaW4tYmFkZ2UtZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

10 years 9 months ago [\#230336](#230336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error in badge form](/forum/3-bug-report/882370-error-in-badge-form#230336 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- Error-message(debug-mod must be tuned on) -- : DateTime::&#95;&#95;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::&#95;&#95;construct(): Failed to parse time string (18 február 2016 05:04)  In file administrator&#92;components&#92;com&#95;hikashop&#92;views&#92;badge&#92;tmpl&#92;form.php on line 48  should be")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODIzNzAtZXJyb3ItaW4tYmFkZ2UtZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
