facebook twitter

Your Cart is currently empty.

joomla custom development

While asking a technical question on forums, please specify Your version of Joomla and JoomSport component.

Date Format

Date Format

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.9.0
Joomla Version : 2.5.17

GTvB
JoomSport Guru
ranks
useravatar
Offline
740 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

Hello,

Thank you for contacting JoomSport support.

There is format d-m-Y H:M

Do you need points between day month and year?

Looking forward to your reply.

Kind Regards,
Irene
The BearDev Support Team

Irene
Administrator
useravatar
Online
2198 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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

zweitewelle
Almost JoomSporter
ranks
useravatar
Offline
42 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

Yes : 05.03.2012

JoomSport Pro Version : 2.9.0
Joomla Version : 2.5.17

GTvB
JoomSport Guru
ranks
useravatar
Offline
740 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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:

Code:

        case "d-m-Y H:i": $format = "%d-%m-%Y %H:%M"; break;

insert this new line :

Code:

                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

jojo
French user of Free Joomsport
JoomSport Guru
ranks
useravatar
Offline
782 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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 tongue .

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.9.0
Joomla Version : 2.5.17

GTvB
JoomSport Guru
ranks
useravatar
Offline
740 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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

Irene
Administrator
useravatar
Online
2198 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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.9.0
Joomla Version : 2.5.17

GTvB
JoomSport Guru
ranks
useravatar
Offline
740 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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  cool

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 roll .

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 :

Code:

        $is_data[] = JHTML::_('select.option', "%d.%m.%Y %H:%M", "d.m.Y H:M", 'id', 'name' );         

Jojo

jojo
French user of Free Joomsport
JoomSport Guru
ranks
useravatar
Offline
782 Posts
User info in posts
Administrator has disabled public posting

Re: Date Format

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  roll. And it's not so easy for me to leave the rules of my profession  cool
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.9.0
Joomla Version : 2.5.17

GTvB
JoomSport Guru
ranks
useravatar
Offline
740 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
2751
Total Polls:
0
Total Posts:
16786138
Total Posts Today:
7
User Info:
 
Total Users:
10603
Newest User:
mbrown
Members Online:
3
Guests Online:
743


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked
top

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