By blearyeye on Monday, 24 June 2019
Replies 5
Likes 0
Views 596
Votes 0
I have JEvents 3.4.50. I have several events that are in the calendar for a particular time but show up differently in the Latest Events module, For instance, at 10:00 am event shows as 10:06 or 10:07. All the variations change the minute from 00 to 06 or 07.

In the module, I'm using the following custom format string:


[m:${startDate(%a, %b %e, %l:%M %P)} - ${endDate(%a, %b %e, %l:%M %P)}][!m:${startDate(%a, %b %e, %l:%m %P)}] ${title}<!--

formats: http://php.net/manual/en/function.strftime.php-
-><!--
multi-line conditional
https://www.jevents.net/discussions/custom-format-string-for-date-range/latest , https://www.jevents.net/frequently-asked-questions/custom-format-strings
-->


What am I doing wrong?

Thanks, Bill
Hello,

Try:


[m:${startDate(%a, %b %e, %I:%M %P)} - ${endDate(%a, %b %e, %I:%M %P)}][!m:${startDate(%a, %b %e, %I:%M %P)}] ${title}


%m = month.

Many thanks
Tony
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Bill,

this is because the format is wrong. you are using ' l ' instead of 'I'

So use:


[m:${startDate(%a, %b %e, %I:%M %P)} - ${endDate(%a, %b %e, %I:%M %P)}][!m:${startDate(%a, %b %e, %I:%m %P)}] ${title}
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks; but no joy. I copied your correction so now I have what's shown below. But still getting the :07 and :06 values. I've tried attaching a link to a screenshot so you can see.

To test, I opened a browser I rarely use, just in case it's a browser issue, but the problem was shown there.

[m:${startDate(%a, %b %e, %I:%M %P)} - ${endDate(%a, %b %e, %I:%M %P)}][!m:${startDate(%a, %b %e, %I:%m %P)}] ${title}<!--

formats: http://php.net/manual/en/function.strftime.php-
-><!--
multi-line conditional
https://www.jevents.net/discussions/custom-format-string-for-date-range/latest , https://www.jevents.net/frequently-asked-questions/custom-format-strings
-->
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Super, thanks.
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
You are very welcome! and I am very sorry it took so long to get a correct solution.

Many thanks
Tony
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post