[EventCalendar] Re: Get Schedule: Can dates be formatted differently?

Dr. Peter Troxler peter.troxler at gmx.net
Thu Aug 9 07:25:29 UTC 2007


Hey

now I see what you want to do ... it's not so easy, have a look at that

http://wpcal-archive.firetree.net/2007-June/002116.html

this is the deluxe-version to your problem, it adds extra config to  
the EC options panel that allows to format the date as used in the  
schedule.

hope this helps

/ pt

On 8-aug-2007, at 22:01, ejm wrote:

> Thank you for your reply, Dr. Troxler.
>
> Yes, I have set that in template-functions.php. But it does not make
> any difference to the date display for ec3_get_schedule. I realize
> that ec3_get_schedule is using the date and date settings from  wp but
> I was hoping there was a way to format the date differently for the
> event notice in a post that is labelled with class="ec3_schedule" but
> retain the wp date settings for the regular date display. (I hope I am
> making sense.)
>
> -E Morris
>
> On Tue Aug 7 07:06:13 UTC 2007, Dr. Peter Troxler wrote:
>> ec3_get_events() has a date parameter which takes the usual php
>> arguments
>> http://wpcal.firetree.net/template-functions/ec3_get_events/
>>
>> On 6-aug-2007, at 15:34, ejm wrote:
>>
>>> I thought the answer for this might be this in template- 
>>> functions.php
>>> $time_format=get_settings('time_format');
>>>
>>> and change it to:
>>>
>>> $time_format=date('D, j M Y');
>>>
>>> but alas no.
>>>
>>> The date format I have set for Wordpress is: l, j F, Y but I would
>>> like it to be D, j M Y for the event calendar postings.
>>>
>>> I've searched as best I can through wpcal.firetree.net/faq/ and
>>> wpcal.firetree.net/template-functions/ec3_get_schedule/ as well as
>>> googling.
>>>
>>> I thought that this post perhaps had the answer
>>> http://wpcal-archive.firetree.net/2007-June/002116.html
>>> But I'm afraid I do not understand it at all. I only know enough  
>>> about
>>> php coding to get me in trouble. But couldn't there be some sort of
>>> way to get ec3_get_schedule to use the $time_format that is being  
>>> used
>>> by ec3_get_events()?
>>>
>>>
>>> -E Morris
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar




More information about the EventCalendar mailing list