Monday, 24 June 2019
  5 Replies
  592 Visits
0
Votes
Undo
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
5 years ago
·
#211304
Accepted Answer
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

5 years ago
·
#211203
0
Votes
Undo
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}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

5 years ago
·
#211229
0
Votes
Undo
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
·
#211304
Accepted Answer
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

5 years ago
·
#211315
0
Votes
Undo
Super, thanks.
5 years ago
·
#211316
0
Votes
Undo
You are very welcome! and I am very sorry it took so long to get a correct solution.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.