- Posts: 15
- Thank you received: 0
Change date format in Calendar Weekly View
- Tess
- Topic Author
- Offline
- New Member
Less
More
6 years 10 months ago #99132
by Tess
Change date format in Calendar Weekly View was created by Tess
Hello-
I would like to change the way the date is displayed when clicking the "Weekly View" button from the big calendar. Currently it reads as
Sunday. 21 May, 2017 and I would like to change it to read Sunday, May 21, 2017, but I don't know what file to override to make that change.
thanks for your help
,
Tess
I would like to change the way the date is displayed when clicking the "Weekly View" button from the big calendar. Currently it reads as
Sunday. 21 May, 2017 and I would like to change it to read Sunday, May 21, 2017, but I don't know what file to override to make that change.
thanks for your help
,
Tess
Please Log in or Create an account to join the conversation.
- James Riley
- Offline
- Platinum Member
6 years 10 months ago - 6 years 10 months ago #99138
by James Riley
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Replied by James Riley on topic Change date format in Calendar Weekly View
This is hard-coded into /components/com_eventbooking/view/calendar/tmpl/weekly.php
Search for the line of code that reads:
and replace with:
Save the file as a template override so that this change isn't lost on update (save the file to /templates/YOUR_TEMPLATE/html/com_eventbooking/calendar/weekly.php (as per "override" Joomla documentation )
@Tuan -- this might be a candidate for either correction in the core release (a comma should be used, not a period), or should be configurable either in Configuration or Translation.
Search for the line of code that reads:
Code:
echo $daysInWeek[date('w', $startWeekTime)].'. '.date('d', $startWeekTime).' '.$monthsInYear[date('n', $startWeekTime)].', '.date('Y', $startWeekTime).' - '.$daysInWeek[date('w', $endWeekTime)].'. '.date('d', $endWeekTime).' '.$monthsInYear[date('n', $endWeekTime)].', '.date('Y', $endWeekTime) ;
and replace with:
Code:
echo $daysInWeek[date('w', $startWeekTime)].', '.date('d', $startWeekTime).' '.$monthsInYear[date('n', $startWeekTime)].', '.date('Y', $startWeekTime).' - '.$daysInWeek[date('w', $endWeekTime)].', '.date('d', $endWeekTime).' '.$monthsInYear[date('n', $endWeekTime)].', '.date('Y', $endWeekTime) ;
Save the file as a template override so that this change isn't lost on update (save the file to /templates/YOUR_TEMPLATE/html/com_eventbooking/calendar/weekly.php (as per "override" Joomla documentation )
@Tuan -- this might be a candidate for either correction in the core release (a comma should be used, not a period), or should be configurable either in Configuration or Translation.
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 6 years 10 months ago by James Riley.
The following user(s) said Thank You: Tuan Pham Ngoc, Tess
Please Log in or Create an account to join the conversation.
- Tess
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
6 years 10 months ago #99143
by Tess
Replied by Tess on topic Change date format in Calendar Weekly View
James-
Thank you so much, that worked perfectly. I really appreciate your quick, accurate responses!
Tess
Thank you so much, that worked perfectly. I really appreciate your quick, accurate responses!
Tess
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
6 years 10 months ago #99151
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change date format in Calendar Weekly View
Thanks James.
Busy working on some architecture / structure changes for version 3.0.0 and will review this one later. If you ever have suggestions to improve it, please help posting issues on Events Booking repo so that we can work on it and get things improved for 3.0.0
Regards,
Tuan
Busy working on some architecture / structure changes for version 3.0.0 and will review this one later. If you ever have suggestions to improve it, please help posting issues on Events Booking repo so that we can work on it and get things improved for 3.0.0
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.