News:

Looking for documentation? Take a look on our wiki

Main Menu

Date format (FE and BE)

Started by mkilkie, August 25, 2016, 01:14:02 AM

Previous topic - Next topic

mkilkie

I am trying to set VM to use UK format dates. I am surprised given how much thought and effort has gone into the product that this obvious little detail hasnt been made an option in one of the many config pages but hey ho.

I read a few good ideas on overrides of the language file and watched an excellent OST video on how to do it. No change. I am missing something.

I have VM 3.0.16, Joomla 3.6.2. I created overrides for 4 strings in FE and one in BE. these were all I could find with D/M/Y in them:

FE - English (en-GB) - Site

   Constant   Text   Language Tag   Location
   COM_VIRTUEMART_DATE_FORMAT_INPUT   %d.%m.%y   en-GB   Site
   COM_VIRTUEMART_DATE_FORMAT_INPUT_J16   d.m.y   en-GB   Site
   COM_VIRTUEMART_DATE_FORMAT_INPUT_JS   dd.mm.y   en-GB   Site

BE = English (en-GB) - Administrator

   Constant   Text   Language Tag   Location
   COM_VIRTUEMART_DATE_FORMAT_INPUT_J16   d/m/y   en-GB   Administrator

Invoices, order forms (FE and BE) and billing notes all show date in US format y/m/d

What am I missing/doing wrong?

thanks

Martin

Studio 42

Hi,
I think that the language key COM_VIRTUEMART_DATE_FORMAT_INPUT is only for the date input not for display.
For display, i think it's the Joomla Date format, but i don't really checked in the VM code.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum