Change date format in Package Form

This topic contains 16 replies, has 3 voices, and was last updated by  Kiran 5 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #472395

    Carin Handsun
    Expired Member
    Post count: 178

    My dates are showing up as Year first even though in wordpress i have chosen, m/d/y, also time is in 15 minute increments how can I change that to 30 minute increments

    #472488

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    There isn’t an option to switch to 30 minute increments at this time but we will look at that for future versions.

    About the display, the WP settings should control the front end display.

    I just tested it working on our testbed, but, to make sure, are you talking about the Event Dates field?

    Try resaving the WP setting, and then the field and checking the display and let us know.

    #472692

    Carin Handsun
    Expired Member
    Post count: 178
    This reply has been marked as private.
    #472697

    Alex Rollin
    Moderator
    Post count: 27815

    Sounds like cache.
    GDB will be retired with GDV1.
    Server cache?

    #472702

    Carin Handsun
    Expired Member
    Post count: 178

    how do I clear server cache, its inmotion hosting, so supercache is still recommended with these settings, do you think it could clear server cache too? (I am not a cache expert)

    Under Settings>WP Super Cache>Advanced make sure to set the following settings:

    Enable: Don’t cache pages for known users.
    Enable: Don’t cache pages with GET parameters. (?x=y at the end of a url)

    #472705

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #472751

    Carin Handsun
    Expired Member
    Post count: 178
    This reply has been marked as private.
    #472813

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #473288

    Kiran
    Moderator
    Post count: 7069

    Hi Carin,

    My dates are showing up as Year first even though in wordpress i have chosen, m/d/y

    Event input field date format set from GeoDirectory > Settings > Events > Input date format.

    time is in 15 minute increments how can I change that to 30 minute increments

    Use following snippet to change time minute increment.

    
    
    /**
     * Set event fields time interval.
     */
    function gd_snippet_190307_event_time_increment( $interval ) {
    	$interval = 30; // In minutes
    	
    	return $interval;
    }
    add_filter( 'geodir_event_time_increment', 'gd_snippet_190307_event_time_increment', 10, 1 );

    Kiran

    #481952

    Carin Handsun
    Expired Member
    Post count: 178

    That works great! I have another question the time defaults as this on display, but when you click it starts at 00, which makes users scroll all the way down to the morning time, can we make it default to 10 am in selection also?
    2019-04-20_1543

    #482103

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #482111

    Carin Handsun
    Expired Member
    Post count: 178

    yes, but when someone clicks into the field it starts at 00:00, no event is going to start then, https://www.screencast.com/t/8LgpnpgUm

    #482134

    Kiran
    Moderator
    Post count: 7069

    If you want to remove 00:00 from list then use following snippet, but it will also remove that option from “Ends at”.

    
    
    function gd_snippet_190422_event_schedule_times( $times ) {
    	if ( isset( $times['00:00'] ) ) {
    		unset( $times['00:00'] );
    	}
    
    	return $times;
    }
    add_filter( 'geodir_event_schedule_times', 'gd_snippet_190422_event_schedule_times', 10, 1 );

    Kiran

    #482138

    Carin Handsun
    Expired Member
    Post count: 178

    I did not want to remove 00:00, just have it open at the 10:00 when clicked into, instead of 00:00

    #482140

    Kiran
    Moderator
    Post count: 7069

    It is already happening. I clicked in input and it shows me default to 10:00.

    Kiran

Viewing 15 posts - 1 through 15 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount