[EventCalendar] Problem with ec3_the_schedule / start and end-date is equal, but time is not - missing space

Torsten Landsiedel Torsten.Landsiedel at gmx.de
Wed Dec 6 01:44:06 UTC 2006


Hello Alex!

I am using this call in my template for showing the event date and time:
<?php ec3_the_schedule('%s ', '%1$s %3$s %2$s', '<b>%s</b>'); ?>

I have to use this space after the %s, because if I have an event on one 
day for which I have set a start time and end time there is no space 
between the date and the time! So I have to use this little workaround.

Look here for an example:
http://www.lag-film-sh.de/cms/2006/10/25/videofilmfest-2006-2/

EC3 uses the same format for the time and the date. So how I can achieve 
this:
"25. November 2006 - 19:30 bis 22:30"

With this call:
<?php ec3_the_schedule('%s - ', '%1$s %3$s %2$s', '<b>%s</b>'); ?>
there are problem if I have a just one day-event:
"1. November 2006 -"

Maybe it is better to use more parameters. One for the date-formatting 
and one for the time-formatting?
For example: date_single, date_range, time_single, time_range, wrapper

Or has anyone an idea on how to solve my "problem"?

Greetings
Torsten

-- 
+-----------------------+--------------------------------------------+
|                       |   Telefon:   0511 - 920 12 66              |
|  Torsten Landsiedel   |     Mobil:   0178 - 286 05 78 (neu!)       |
|  Fössestrasse 97      |       Fax: 012120 - 21 83 24               |
|  30453 Hannover       +--------------------------------------------+
|                       |       Web: http://www.landsiedel.here.de   |
+-----------------------+--------------------------------------------+



More information about the EventCalendar mailing list