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

#   Badge edit Date error message

##

- **[support](/forum/user/34775-support "View support's Profile")**
- [![support's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34775-support "View support's Profile") Topic Author
- [ Offline](/forum/user/34775-support)

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 11 months ago [\#177680](#177680) by [support](/forum/user/34775-support "View support's Profile")  *[Badge edit Date error message](/forum/3-bug-report/872709-badge-edit-date-error-message#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::&#95;&#95;construct() &#91;datetime.--construct&#93;: 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::&#95;&#95;construct() &#91;datetime.--construct&#93;: Failed to parse time string (27 octobre 2014 12:43) at position 6 (o): The timezone could not be found in the database")* was created by *[support](/forum/user/34775-support "View support's Profile")*

-- 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() [&lt;a href='datetime.--construct'&gt;datetime.--construct&lt;/a&gt;]: 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzI3MDktYmFkZ2UtZWRpdC1kYXRlLWVycm9yLW1lc3NhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 11 months ago [\#177683](#177683) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Badge edit Date error message](/forum/3-bug-report/872709-badge-edit-date-error-message#177683 "-- 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::&#95;&#95;construct() &#91;datetime.--construct&#93;: 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::&#95;&#95;construct() &#91;datetime.--construct&#93;: Failed to parse time string (27 octobre 2014 12:43) at position 6 (o): The timezone could not be found in the database")*

Hi,

Please edit the file "administrator/components/com_hikashop/views/badge/tmpl/form.php" and replace 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;

By 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;

And also Code:

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

By Code:

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

Regards,

---

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

The following user(s) said Thank You: [support](/forum/user/34775-support "View support's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzI3MDktYmFkZ2UtZWRpdC1kYXRlLWVycm9yLW1lc3NhZ2U/dG1wbD1tYXJrZG93bg==) 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.135 seconds

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

[](#top)
