Change date format on invoice

  • Posts: 27
  • Thank you received: 1
9 years 1 month ago #217304

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : FF 40.0.3

Hi,
I set up a new site with HS2.5
I modified the invoice template, like I use it on another site.
The date is not showing correct and a strange behaviour.

The code is:
echo JText::_('DATE').': '.hikashop_getDate($this->element->order_invoice_created,'%d %B %Y');
It displays: "2015-10-14"

When I change the code like:
echo JText::_('DATE').': '.hikashop_getDate($this->element->order_invoice_created,'%d %B %YY');
It displays: "14 Oktober 20152015"

My question is, what do I must change to get the european style of date like 14. Oktober 2015?

Kind regards,

Marco

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 1 month ago #217327

Hi,

The date format is controlled with translations. So you want to use a translation override in order to change it:
hikashop.com/download/languages.html#modify
HIKASHOP_DATE_FORMAT="%Y-%m-%d"
HIKASHOP_EXTENDED_DATE_FORMAT="%Y-%m-%d %H:%M"

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

  • Posts: 27
  • Thank you received: 1
9 years 1 month ago #217390

Hi Nicolas,

Works perfectly.

Thank you very much.

Last edit: 9 years 1 month ago by mschnyde.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum