• Resolved dinosaurier

    (@dinosaurier)


    Hallo zusammen,

    I just see that the event plugin requires AM+PM for a time – unfortunately in germany a 24 hour time is standard, how can I change this?

    Thanks a lot

Viewing 1 replies (of 1 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hello,

    If you mean the input selector you can remove the AM/PM by using the following code snippets. We recommend using the “Code Snippets” plugin for this:

    add_filter('ayecode_ui_calendar_params','_my_ayecode_ui_calendar_params');
    function _my_ayecode_ui_calendar_params($params){
    	
    	$params['time_24hr'] = "true";
    
    	return $params;
    }
    
    add_filter('geodir_event_aui_start_end_time_attrs','_my_geodir_event_aui_start_end_time_attrs');
    function _my_geodir_event_aui_start_end_time_attrs($params){
    	
    	$params['data-time_24hr'] = "true";
    
    	return $params;
    }

    If you have any issues just let me know.

    Thanks,

    Stiofan

Viewing 1 replies (of 1 total)

The topic ‘AM+PM in Eventplugin’ is closed to new replies.