Discount option

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
11 years 5 months ago #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

Attachments:

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

  • Posts: 26024
  • Thank you received: 4005
  • MODERATOR
11 years 5 months ago #80202

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

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->getValue('config.offset');
	}
	return JHTML::_('date',$time- date('Z'),$format,$timeoffset);
}
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.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum