The DPCalendar Joomla event manager offers options within a module or menu link configuration to adapt the date and time format of the displayed events. This means the user can customize the date appearance to suit their needs and target audience.
The PHP date commands allow you to render the date in almost any combination you wish. To achieve that, the date and time configuration must fit the PHP date syntax.
The following list are examples of date and time formats:
Every date command is executed within the translator. Means you can use ordinary strings as date or time format and then do a language override for them. This offers the possibility to use different formats per language.
Joomla has different timezone settings, the global Joomla timezone and the user timezone. As default the user timezone inherits from the Joomla timezone, means when the Joomla timezone changes then the user timezone changes too. Timezones are important for a Calendar and Event manager extension like DPCalendar is, as it defines how dates are displayed and how day light summer time (DST) is handled. Initially every Joomla site comes with the UTC timezone pre configured. The timezone in Joomla can be changed on the following link System -> Global Configuration -> Server tab.
Additionally you can enable the timezone switcher in the DPCalendar options, which allows to change the actual timezone by the visitor himself on every page. When the browser timezone differes than the options timezone, an information panel is shown to switch the timezone to the browser one.
DPCalendar renders the start and end time according to the event set up. This means when the event is an all day event, then only the dates are displayed, otherwise the times as well.
There is an additional setting when you edit an event where you can hide the end time. This means that DPCalendar will not show anywhere the end time of the event. You still have to set it for export reasons, but within DPCalendar it will not be displayed.
Sometimes site admins do want to change the order of the dates or display only part of it, etc. To achieve this you need to create a layout override (not a template override).
Copy the file /components/com_dpcalendar/layouts/event/datestring.php to /templates/{{your template}}/html/layouts/com_dpcalendar/event/datestring.php and adapt the it to your needs.
Comments (0)