News:

Support the VirtueMart project and become a member

Main Menu

Format date wrong

Started by cargep, March 21, 2014, 10:32:42 AM

Previous topic - Next topic

cargep

Hello everyone, I'm Giuseppe and I have just implemented a Joomla 2.5.19 VirtueMart 2.0.26d with the latest version of the Italian language.
It all works fine, except the format date in the PDF invoice and delivery note.
The date appears in the American format (yyyy-mm-dd) and not in Italian (dd-mm-yyyy).
How do I change them? in which files should I do?
I do not want to create trouble and block all  :(

HELP!!!

jenkinhill

Date format is set in language files, which enables different formats to be used on multi-lingual sites so country differences can be automatically be solved.

For invoice/delivery note you should make an override for the language constant DATE_FORMAT_LC4  - change it to d.m.Y

See http://forum.virtuemart.net/index.php?topic=113895.0
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

cargep

Thank you for having responded to me.
I will try to do as you said.
Surely I will have to do an override of the file it-IT.com_virtuemart.ini (creating a copy of it-IT.com_virtuemart.override.ini in override folder) and write that tag.
As soon as I get home from work I'll try right away.  :D
Excuse my bad english  :(

cargep

Unfortunately I can not find the file that contains the string DATE_FORMAT_LC4  :'( :'( :'(

jenkinhill

Joomla's language override manager will find the DATE_FORMAT constants for you. Maybe in your language file it is not LC4 so just search for DATE_FORMAT
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

cargep

Ah ok, thank you.
I will use the  Joomla's language override manager who will look for me  ;)

I will be downloading the guide for the override, because I've never done  :(

thanks again

Giuseppe

jenkinhill

That's whay I gave you a link to the tutorial above.
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

cargep

#7
wowwww
I solved with 2 overrides
1) I changed value DATE_FORMAT_LC4 (Y-m-d) in (d-m-Y)
2) value "Qty" in " Q.ta' "
THANKSSSSSSSS  ;D