VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: mkilkie on August 25, 2016, 01:14:02 AM

Title: Date format (FE and BE)
Post by: mkilkie on August 25, 2016, 01:14:02 AM
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
Title: Re: Date format (FE and BE)
Post by: Studio 42 on August 25, 2016, 17:18:53 PM
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.
Title: Re: Date format (FE and BE)
Post by: jenkinhill on August 25, 2016, 17:31:33 PM
http://forum.virtuemart.net/index.php?topic=131895