CGCalendar Date Setting
CGCalendar Date Setting
How does the calendar get the correct date setting?
Thanks.
Thanks.
Last edited by KitchM on Sun Nov 23, 2014 6:28 pm, edited 2 times in total.
Re: CGCalendar Date Setting
Go to: Site-admin --> Global Settings and fill the "Date Format String:" filed with a strftime like: %d-%m-%Y
Re: CGCalendar Date Setting
Thank you very much for the advice. I tried as you suggested but my calendar month is still incorrect. It is one month too early. This is October but it displays November.
Re: CGCalendar Date Setting
Again: search the forums. It has been asked and answered a few times.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: CGCalendar Date Setting
display="upcominglist" displayforday="true"KitchM wrote:Thank you very much for the advice. I tried as you suggested but my calendar month is still incorrect. It is one month too early. This is October but it displays November.
Re: CGCalendar Date Setting
Thanks for the tip.
Tried it but got no change. I probably put it in the wrong spot in the CSS.
Tried it but got no change. I probably put it in the wrong spot in the CSS.
Re: CGCalendar Date Setting
Can you give us a url? Or a piece of your template you are using?
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: CGCalendar Date Setting
Search The forum. It's a known problem and I somewhere posted a solution. Also Rolf posted a solution.
http://forum.cmsmadesimple.org/viewtopi ... ar#p313618
http://forum.cmsmadesimple.org/viewtopi ... ar#p313618
Last edited by staartmees on Wed Oct 29, 2014 8:16 pm, edited 1 time in total.
Re: CGCalendar Date Setting
I am so embarrased.
Of all the times I've searched a subject, this was the first time I did not. And the answers are all over the place.
Please forgive me.
Someone had already helped me with changing some code in the script months ago. Then it evidently stopped working correctly.
So instead of the part that was added before
I now have
Now it works properly.
Thanks very much for everyone's help. It is appreciated.
Of all the times I've searched a subject, this was the first time I did not. And the answers are all over the place.
Please forgive me.
Someone had already helped me with changing some code in the script months ago. Then it evidently stopped working correctly.
So instead of the part that was added before
Code: Select all
{$month_names[$month]}
Code: Select all
{$date|date_format:'%B'}
Thanks very much for everyone's help. It is appreciated.
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: CGCalendar Date Setting
Please add [Solved] to the titel.
Re: [Solved] CGCalendar Date Setting
With my fingers crossed that it doesn't change again.....
Re: [Solved] CGCalendar Date Setting
This solution does not work for me. I've got this in my list template:
$date|date_format:"%B" shows nothing. Changing date to $month shows nothing. Removing date_format when using $month shows the number of the month, which isn't exactly what I am after.
Anyone?
Code: Select all
<span class="calendar-prev"><a class="button" href="{$navigation.prev}">«</a></span> <span class="button">{*$month_names[$month]*}{$date|date_format:'%B'} {$year}</span> <span class="calendar-next"><a class="button" href="{$navigation.next}">»</a></span>
Anyone?
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: [Solved] CGCalendar Date Setting
@cromoglic post your system information
http://docs.cmsmadesimple.org/troublesh ... nformation
http://docs.cmsmadesimple.org/troublesh ... nformation
Re: [Solved] CGCalendar Date Setting
Try:cromoglic wrote:$date|date_format:"%B" shows nothing. Changing date to $month shows nothing. Removing date_format when using $month shows the number of the month, which isn't exactly what I am after.
Code: Select all
{$thedate|date_format:"%B"}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -