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

#   Error updating a discount after upgrade

##

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

Less More

- Posts: 187
- Thank you received: 10
-
-

11 years 11 months ago -  11 years 11 months ago [\#177634](#177634) by [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")  *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177634 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")* was created by *[zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : 0 DateTime::__construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character

While trying to edit a discount coupon:
0 DateTime::__construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character

Seems something wrong with the Date handling?
We can create a new one but not edit.

PHP DATE settings:

date/time support enabled
"Olson" Timezone Database Version 2014.5
Timezone Database internal
Default timezone UTC
Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone Europe/Amsterdam Europe/Amsterdam

Bastiaan

Last edit: 11 years 11 months ago by [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 11 months ago [\#177652](#177652) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177652 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")*

Hello,
I just tried it on my end and I didn't had any issue, do you also have that issue when you use the "Product available from/until" through your product configuration page ?

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

- **[fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")**
- [![fafamaster's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar68.png)](/forum/user/68-fafamaster "View fafamaster's Profile")
- [ Offline](/forum/user/68-fafamaster)

Less More

- Posts: 502
- Thank you received: 12
-
-

11 years 11 months ago [\#177780](#177780) by [fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")  Replied by *[fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")* on topic *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177780 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")*

hello,

I have the same problems !!!

I can not edit my old code!
I can create new and edit it, but not edit old ...
If I copy an old code, I can not edit it either ...

Thank you for your help !!!!!

Bonjour,

j'ai le même soucis !!!

Je ne peux plus éditer mes anciens codes !
Je peux créer un nouveau et l'éditer, mais pas éditer les anciens...
Si je copie un ancien code, je ne peux pas l'éditer non plus...

Merci de votre aide !!!!!

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

- **[fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")**
- [![fafamaster's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar68.png)](/forum/user/68-fafamaster "View fafamaster's Profile")
- [ Offline](/forum/user/68-fafamaster)

Less More

- Posts: 502
- Thank you received: 12
-
-

11 years 11 months ago [\#177781](#177781) by [fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")  Replied by *[fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")* on topic *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177781 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")*

latest info, it seems that the concern arises when you want to put an end date to the coupon!
if it helps ....

dernière info, il semble que le soucis se présente quand on souhaite mettre une date de fin au coupon !
si cela peut aider....

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

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

Less More

- Posts: 187
- Thank you received: 10
-
-

11 years 11 months ago [\#177796](#177796) by [zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")  Replied by *[zebrafilm](/forum/user/6308-zebrafilm "View zebrafilm's Profile")* on topic *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177796 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")*

your question: do you also have that issue when you use the "Product available from/until" through your product configuration page ?

No I didn't but noticed in my discount coupon sectie that I was able to create a new discount coupon with enddate and edit it, after I downloaded the latest Hika again.
The error remained for coupons made earlier so I worked around it by recreating them.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3MjcwMS1lcnJvci11cGRhdGluZy1hLWRpc2NvdW50LWFmdGVyLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

11 years 11 months ago [\#177815](#177815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177815 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")*

The issue comes from unification of the date format that we did. You can now change it in the language file.
We've actually applied a hotfix to the language files to use back the previous format to avoid these update errors.
So if you load again your language files from our server that should automatically fix the issue. Or you can manually change the translations:
HIKASHOP_DATE_FORMAT="%Y-%m-%d"
HIKASHOP_EXTENDED_DATE_FORMAT="%Y-%m-%d %H:%M"

The following user(s) said Thank You: [Kadasta](/forum/user/32519-kadasta "View Kadasta's Profile")

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

- **[fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")**
- [![fafamaster's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar68.png)](/forum/user/68-fafamaster "View fafamaster's Profile")
- [ Offline](/forum/user/68-fafamaster)

Less More

- Posts: 502
- Thank you received: 12
-
-

11 years 11 months ago [\#177846](#177846) by [fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")  Replied by *[fafamaster](/forum/user/68-fafamaster "View fafamaster's Profile")* on topic *[Error updating a discount after upgrade](/forum/25-install-update/872701-error-updating-a-discount-after-upgrade#177846 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  While trying to edit a discount coupon: 0 DateTime::&#95;&#95;construct(): Failed to parse time string (21 oktober 2014 00:01) at position 0 (2): Unexpected character  Seems something wrong with the Date handling? We can create a new one but not edit.  PHP DATE settings:  date/time support enabled &quot;Olson&quot; Timezone Database Version 2014.5 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default&#95;latitude 31.7667 31.7667 date.default&#95;longitude 35.2333 35.2333 date.sunrise&#95;zenith 90.583333 90.583333 date.sunset&#95;zenith 90.583333 90.583333 date.timezone Europe/Amsterdam Europe/Amsterdam  Bastiaan")*

It's ok for me !!!!!!!

Thank you very much ![;)](/media/kunena/emoticons/11.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3MjcwMS1lcnJvci11cGRhdGluZy1hLWRpc2NvdW50LWFmdGVyLXVwZ3JhZGU/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.294 seconds

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

[](#top)
