Home › Forums › Calendar Products › Events Calendar PRO › Date in the Widget
- This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago by Geoff.
-
AuthorPosts
-
November 21, 2014 at 6:25 am #893705StefanParticipant
Hi,
in the widget, in the list view, the date have the format: Januar 31 @ 18:30, I would like to have it so: 31. Januar@18:30.
I have the function php edited with:
add_filter(‘tribe_events_event_schedule_details_formatting’, ‘uniform_date_format’);function uniform_date_format($settings) {
$settings[‘same_year_format’] = get_option( ‘date_format’ );
return $settings;
}but doesn’t works
Thanks, StefanNovember 21, 2014 at 8:42 am #893892GeoffMemberHi there, Stefan! Thanks for getting in touch. ๐
Good question. Have you tried using the date settings instead of a function? For example, you can set your WordPress time format to 24-hour format (under Settings > General), then head over to the Event Date Format settings (under Events > Settings > Display) and update the “Date without year” option. Here’s a screenshot of how I configured it to match your format.
Does that make sense? Will that work for you? Please let me know.
Cheers!
GeoffDecember 1, 2014 at 9:18 am #904027GeoffMemberHey there Stefan! Just checking in to see if thereโs been any further update or if you still need assistance on this one–let me know. ๐
Cheers!
GeoffDecember 1, 2014 at 11:07 pm #904859StefanParticipantHi Geoff,
Thanks for your reply and sorry for my late response. Thank you, with these settings it looks good.
Best Regards,
StefanDecember 2, 2014 at 7:18 am #905191GeoffMemberFantastic, thanks Stefan! I’m so glad that helped.
I’ll ย go ahead and close this thread, but please feel free to hit us up with a new thread if any other questions pop up. We’d be happy to help. ๐
Cheers!
Geoff -
AuthorPosts
- The topic ‘Date in the Widget’ is closed to new replies.