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

#   Discount option

##

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

Less More

- Posts: 142
- Thank you received: 3
-
-

13 years 10 months ago [\#80131](#80131) by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")  *[Discount option](/forum/3-bug-report/76401-discount-option#80131 "Hi  When entering the start date and finish date, and pushing save or apply, then the time is changing. somehow it is not possible to set the time and keep it. it does always goes forward and if pushing several times apply, then even the date will change.  please see the print screens I made for this.  After saving or pushing apply the time changes!  Is there a explanation for this behavior? How can this be fixed?  Best regards Raphael")* was created by *[ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")*

Hi

When entering the start date and finish date, and pushing save or apply, then the time is changing. somehow it is not possible to set the time and keep it. it does always goes forward and if pushing several times apply, then even the date will change.

please see the print screens I made for this.

[ ![1.jpg](/forum/attachment/7337) ](/forum/attachment/7337 "1.jpg")

After saving or pushing apply the time changes!

[ ![2.jpg](/forum/attachment/7338) ](/forum/attachment/7338 "2.jpg")

Is there a explanation for this behavior?
How can this be fixed?

Best regards
Raphael

- [ ![1.jpg](/forum/attachment/7337) ](/forum/attachment/7337 "1.jpg") [ ](/forum/attachment/7337?download=1 "1.jpg")
- [ ![2.jpg](/forum/attachment/7338) ](/forum/attachment/7338 "2.jpg") [ ](/forum/attachment/7338?download=1 "2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjQwMS1kaXNjb3VudC1vcHRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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)
-

13 years 10 months ago [\#80202](#80202) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Discount option](/forum/3-bug-report/76401-discount-option#80202 "Hi  When entering the start date and finish date, and pushing save or apply, then the time is changing. somehow it is not possible to set the time and keep it. it does always goes forward and if pushing several times apply, then even the date will change.  please see the print screens I made for this.  After saving or pushing apply the time changes!  Is there a explanation for this behavior? How can this be fixed?  Best regards Raphael")*

Hi,

Please re-download HikaShop 2.0 to fix this problem.
Otherwise, you can edit the HikaShop helper file and update the function **hikashop\_getDate** by Code:

function hikashop_getDate($time = 0,$format = '%d %B %Y %H:%M'){ if(empty($time)) return ''; if(is_numeric($format)) $format = JText::_('DATE_FORMAT_LC'.$format); if(HIKASHOP_J16){ $format = str_replace(array('%A','%d','%B','%m','%Y','%y','%H','%M','%S','%a'),array('l','d','F','m','Y','y','H','i','s','D'),$format); return JHTML::_('date',$time,$format,false); } static $timeoffset = null; if($timeoffset === null) { $config = JFactory::getConfig(); $timeoffset = $config-&gt;getValue('config.offset'); } return JHTML::_('date',$time- date('Z'),$format,$timeoffset); }

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjQwMS1kaXNjb3VudC1vcHRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.056 seconds

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

[](#top)
