"DateTime::__construct(): ..." on b-end order list

  • Posts: 63
  • Thank you received: 0
9 years 6 months ago #202096

-- url of the page with the problem -- : www.dreamlordpress.it
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- Error-message(debug-mod must be tuned on) -- : DateTime::__construct(): Failed to parse time string (18 Gennaio 2015) at position 0 (1): Unexpected character

Hi,

I have an error DateTime::__construct(): Failed to parse time string (18 Gennaio 2015) at position 0 (1): Unexpected character
when I try to filter orders by date on the backend order list.


Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 6 months ago #202105

Hi,

This must comes from the fact that your HikaShop translation file is not up to date or that you modified it.
Normally, you should have these lines in your translation file:
HIKASHOP_DATE_FORMAT="%Y-%m-%d"
HIKASHOP_EXTENDED_DATE_FORMAT="%Y-%m-%d %H:%M"
If that's not the case, add them and it will work.

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

  • Posts: 63
  • Thank you received: 0
9 years 6 months ago #202137

I got the lines:

HIKASHOP_DATE_FORMAT="%d %B %Y"
HIKASHOP_EXTENDED_DATE_FORMAT="%d %B %Y %H:%M"

Should I change them to the format you are suggesting?


Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 6 months ago #202162

Hi,

Yes, that's it.

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.057 seconds
Powered by Kunena Forum