Would it be possible to have an option to define the date and time formats you want for LeagueSite? I'm from the U.S., so I use MM/DD/YY and 12 hour time on my site, but LeagueSite uses DD/MM/YY and a 24 hour clock.

I apologize if there is a way to do this already, but I'm not seeing anything.

Thanks in advance!

CommentFileSizeAuthor
#4 leaguesite_match.module.patch3.12 KBAlun

Comments

Alun’s picture

Category: support » bug
Status: Active » Postponed (maintainer needs more info)

Where is the date and time format that you want to change being displayed? Most of the displays are using the same format that Drupal uses, through its settings. If it isn't following that setting, then I will update the code as it is a bug.
Thanks
Alun

scottauth’s picture

There are two places I see the issue.

- The "match_list" view shows it as dd/mm/yy and 24hr time.

- When creating a match, the "Date" input box requests the format: 04.11.2010

I will note though, that when viewing a match via "Latest Results" it shows the date in the correct format: Monday, November 1, 2010 - 7:30pm

EDIT:

I found in the view, that the date was showing custom, so I changed that to make it: m/d/y h:i

However, I would still like the input to reflect this as well.

Alun’s picture

OK Thanks for that, I'll get some patches out soon to fix these.
Regards
Alun

Alun’s picture

Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new3.12 KB

Hi, sorry for the delay, here is a patch that will allow you to change the input on the match edit screen and also the match admin screen.
Once you have applied the patch, you will be able to select the format from the match options page (www.example.com?q=admin/settings/matches)
Let me know if it works OK! Thanks
Alun

ElRefe’s picture

When I look at games entered thru /leaguesite/matchadmin "Time" for e.g. the first games is set at 20:00 which is not correct. Entering "details" for the game in question also reveals "start time for the match" as 18:00.

I am situated in Copenhagen which officially is GMT +1:00. Home » Administer » Site configuration » Date and time is set to "Europe/Copenhagen" so I can't see where I need to change a Date/Time setting to display the correct match start time.

Please bear with me because I'm a beginner to both Drupal, LeagueSite and Forum etiquette.

Thanks,
Claes

Alun’s picture

Thanks for your message Claes, can you let me know what version of Leaguesite are you using? I thought I had dealt with this issue in alpha4. (http://drupal.org/node/789838)
Thanks
Alun

ElRefe’s picture

Dear Alun, you're probably quite right that you already fixed this issue back in July.

However, I do use 6.x-1.0-alpha4. Must I use 6.x-1.x-dev since alpha4 is currently the only recommended release available.

Bear with me - I'm a novice in these matters but eager to learn;-)
/C

Alun’s picture

Hmm, no it should be fixed in alpha4. I'll have to take a closer look - is it only on the match admin screen the time is incorrect?

ElRefe’s picture

The match details show the correct time I entered but the match admin list shows time incorrectly.
/Claes

scottauth’s picture

Thanks for the patch Alun, it works great, but I am having the same issue as Claes, where Match Admin is showing the incorrect date format (dd/mm).

Also, the time is still a 24-hour clock.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.