Not displaying the time

Not displaying the time

از Phil Waud در
Number of replies: 5
Hi All

Our school web site has always had a calendar on the right, and I was pleased that Moodle can also offer this now that I have switched over to using it to edit the web site.

I used to display any events in the format "Sat 3rd July - School closes", which is different to the way that moodle does things in that:-
a) Moodle displays the event before the date.
b) Moodle will always display the time

We have many events which simply dont need a time, or it is meaningless to specify one.

As a quick get workaround, I edited the calendar/lib.php file and removed the bits that added the time to the output string.

Could I request that there is a facility in the future to NOT specify a time?

I did play with the code a bit and set it so that it would not add the time if it was set to 12:00 AM, but that isnt quite what I would like.

It would be good to have a function to change the format of the time as well, ie short day (mon), maybe numeric date (12/03/07) etc. I have always been very impressed with PHPs calendar functions and Im surprised that the code for the calendar block is so verbose!

Phil
میانگین امتیازات:  -
In reply to Phil Waud

Re: Not displaying the time

از John Papaioannou در
You are more than welcome to add this feature request to our bug tracker. Every now and then someone does suggest it, which means that there are actually quite some people who do want it, but if it doesn't get written down in the tracker it will always keep being forgotten.

Cheers
Jon
In reply to John Papaioannou

Day events on the Moodle Calendar

از Martin O'Mahony در
It's in the tracker already: MDL-1967 (it seems it has been ever since Sep. 2004)
Though it's set for version 1.6 I still voted for it, hoping it will get some attention that way. Maybe someone could alter the entry to version 1.8.2? I have no idea how to do that.

It would be a very nice feature indeed. Our students are using the Moodle calendar in Kontact (KDE/Linux) on their laptops, but it really looks rather messy with "day events" clogging up the screen.


In reply to Phil Waud

Re: Not displaying the time

از Gregory VanStrien در
Is there any way to find what code you edited to make this happen?

Thanks!