#142 Date format hardcoded in mycalendar.day.tpl and others

Next_Release
open
nobody
None
5
2014-07-14
2014-07-14
Anders
No

Some date formats in the heading of Schedule > My calendar and Schedule > Resource calendar are hardcoded.

Suggestion:

Two new date formats would need to be defined. In the _LoadDates function in each language file, add the keys

$dates['full_week'] = '\W\e\e\k W Y';
$dates['full_month'] = 'F Y';

Then, in calendar.week.tpl and mycalendar.week.tpl, change the date formatting row in .calendarHeading (the row between the $PrevLink and $NextLink) to

{formatdate date=$DisplayDate key=full_week}

Further, in calendar.day.tpl and mycalendar.day.tpl, change the date formatting row in .calendarHeading to

{formatdate date=$DisplayDate key=schedule_daily}

and finally, in calendar.month.tpl and mycalendar.month.tpl, change the date formatting row in .calendarHeading to

{formatdate date=$DisplayDate key=full_month}

/Anders

Discussion