Home › Forums › Calendar Products › Events Calendar PRO › Date formatting wrong
- This topic has 9 replies, 2 voices, and was last updated 11 years, 8 months ago by
Barry.
-
AuthorPosts
-
August 21, 2014 at 2:42 am #688424
crystalparknewmedia
ParticipantHi,
The provided URL is an development version.
Take a look at this page. Below the title there is the from – to date. The formatting is incorrect.
It maybe that it is correct in some counties but for Dutch people (The Netherlands) this is not a valid formatting.
It should be:
[from-month-number] [from-month] [from-year] [seperator] [to-month-number] [to-month] [to-year]
so (in dutch): 6 september 2014 – 28 september 2014At the moment it echo’s: 6 september 2014 – 28
Any thought on this / quick fix?
With Regards,
PaulAugust 21, 2014 at 10:42 am #689473Barry
MemberHi Paul!
I’m sorry you are experiencing difficulties.
I do see that you already tried running through our standard troubleshooting steps which is awesome:
YES, I’ve deactivated all other plugins to check for a plugin conflict.
YES, I’ve reverted to the 2011 default WordPress theme (with other plugins still deactivated) to check for a theme conflict.Just for the avoidance of doubt can I ask you to confirm if this made any difference or allowed you to isolate any conflicts?
I’m also curious as to whether or not you have adjusted any of the date format settings found in the Events > Settings > Display admin screen – could that be impacting here?
I look forward to hearing from you 🙂
August 21, 2014 at 11:42 am #689619crystalparknewmedia
ParticipantHi Barry,
Yep, I have deactivated all plugins and the current active theme is twentyfourteen. I recon that should suffice.I did found out that this only occurs when the from – to date is within the same month.
See the dates below the title:
Example in same month
Example not in same monthHere you can see the date format settings:
I can provide login credentials if you whish?
Cheers,
PaulAugust 21, 2014 at 11:44 am #689627crystalparknewmedia
ParticipantWhoops, linked img wrong ;P, again…
August 21, 2014 at 11:46 am #689632crystalparknewmedia
Participantoh my… I broke this page =) No img styling here?
sry, here is the normal link.
August 21, 2014 at 11:58 am #689652crystalparknewmedia
ParticipantThis reply is private.
August 22, 2014 at 7:47 am #691606Barry
MemberThanks – I don’t think I’ll need those credentials though – your screenshot gave me what I needed 🙂
This definitely seems like a bit of a shortcoming in our implementation; however, it is actually possible to completely override things using the tribe_events_event_schedule_details hook and so break away from any restrictions our settings effectively enforce. The basic outline for that sort of solution would look something like this:
add_filter( 'tribe_events_event_schedule_details', 'custom_schedule_details' ); function custom_schedule_details() { $start_date = tribe_get_start_date( null, false, 'PHP style date format' ); $end_date = tribe_get_end_date( null, false, 'PHP style date format' ); return "$start_date to $end_date"; }This would give you absolute control. Catching situations more selectively such as only overriding things when it is a multiday event taking starting and ending in the same year is going to be doable using the same filter hook – but a little more involved than we would usually cover here in the forums.
All that to say, I hope that gives you some avenues to explore – namely, writing a custom date formatting function or else temporarily changing your date format settings (even if not ideal, perhaps it could function as a temporary measure until we can reconsider our settings in this regard?).
Does that help?
August 26, 2014 at 3:35 am #700800crystalparknewmedia
ParticipantHi Barry,
I wil look into this today and report back. Thanks.
August 26, 2014 at 3:40 am #700807crystalparknewmedia
Participantyep! precisely what I needed, thanks!
August 26, 2014 at 7:06 am #701241Barry
MemberExcellent 🙂
In that case I will go ahead and close this thread, but of course if we can help with anything else just open a new thread and one of the team will be only too happy to assist.
Last but not least, we’re always keen to hear your thoughts on The Events Calendar and if you would like to leave a note on our plugin review page we’d love to hear from you. Thanks again!
-
AuthorPosts
- The topic ‘Date formatting wrong’ is closed to new replies.
