While asking a technical question on forums, please specify Your version of Joomla and JoomSport component.
Hello,
I really do miss the German standard date/time format : DD.MM.YYYY HH:MM (e.g. 04.03.2012 14:17). Thia format is not selectable on BE.
Please be so kind to fix it, even though or because it's JoomSport functionality ....
GTvB
JoomSport Pro Version : 2.5
Joomla Version : 2.5.8
Hello Irene,
the correct representation of date, month and year is in german speaking countries with points between dd.mm.yyyy.
For Example:
12.März 2012 = 12.03.2012
BR
DJ
www.zweitewelle.de - Das unabhängige Handball-Online-Magazin
Hello GTvb and zweitewelle ,
If you are impatient tu use German date format, open the file \components\com_joomsport\includes\func.php and before the line 25:
case "d-m-Y H:i": $format = "%d-%m-%Y %H:%M"; break;
insert this new line :
case "%d-%m-%Y %H:%M": $format = "%d.%m.%Y %H:%M"; break;
And the result will be a date in format 04.03.2012 14:17 when selected d-m-Y H:M in the BE configuration.
Jojo
Hello jojo and Iriene,
thx again jojo, and I also was able, to locate the case statement. Your change is again only a workaround .... and a dirty one too
.
This also has to be fixed finally by the beardev team. I was very astonished, to find it hard coded in the system. This is a very very old fashioned way, to implement customisation.
GTvB
JoomSport Pro Version : 2.5
Joomla Version : 2.5.8
Hello,
We will take into consideration for further releases your suggestion about implementing format "dd.mm.yyyy."
If you are interested in this date format immediately we are pleased to offer you custom development.
Please feel free to contact JoomSport support.
Kind Regards,
Irene
The BearDev Support Team
Sorry Irrene,
jojo already has presented the workaround for this problem. There is no need to offer any custom development. Zweitewelle and I will save the rest of our money. We can use jojo's dirty trick, or we will change it on BE and FE and expand the values for the date format. And we all hope, that you will finish consideration somewhere in the future and implement the changes, test it and release without any bug.
Is it you, Irene, or just a writing tape ????
GTvB
JoomSport Pro Version : 2.5
Joomla Version : 2.5.8
Hello GTvB,
You said that you were able to locate my dirty workaround before I write it, but you have to think that it could interest also zweitewelle (perhaps that he was not able to do this workaround himself and on your side you didn"t propose your solution).
You have to know that the goal of this forum is not to generate beautifull PHP code but it's to help the requesters
My workaround works fine and it's the Main point. If you remember, I proposed also a dirty workaround for your 'selection box' problem and it helped you even if it was incomplete
.
Now, for zweitewelle, here is a clean correction (not the better one because the configuration in done in the PHP code).
Open the file \administrator\components\com_joomsport\models\default\config.php file and in line 42, insert the following line :
$is_data[] = JHTML::_('select.option', "%d.%m.%Y %H:%M", "d.m.Y H:M", 'id', 'name' ); Jojo
Hello jojo,
you are right, I forgot, that Zweitewelle is also interested in a quick solution.
And by the way .... it's a very beautiful php statement ... but it does not really fit in the choosen system design
. And it's not so easy for me to leave the rules of my profession
I will make the changes on upcoming weekend, and then I will decide, how to implement this workaround.
And again : You are doing a dammed good job here !!!
GTvB
JoomSport Pro Version : 2.5
Joomla Version : 2.5.8
Forum Legend:
JoomSport.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries
Copyright © 2009-2013 BearDev < Web Solutions /> JoomSport site Disclimer