Support » Plugin: The Events Calendar » tribe_create_event() — format date

  • Sébastien SERRE

    (@sebastienserre)


    Hello,
    As per your documentation, the args array accepts EventStartDate date string (required) – Start date of the Event.
    but you didn’t specified the format of the string and considerind Date Time format…. it’s difficult…

    I’m testing with :

    $args = array(
    			'ID'             => $id,
    			'post_content'   => $events['longDescription']['fr'],
    			'post_title'     => $events['title']['fr'],
    			'post_excerpt'   => $events['description']['fr'],
    			'post_status'    => 'publish',
    			'post_type'      => 'tribe_events',
    			'EventStartDate' => '2019/09/24 06:00:00',
    			'comment_status' => 'closed',
    			'ping_status'    => 'closed',
    			'meta_input'     => [
    				'EventURL'     => $events['conditions']['fr'],
    				'oa_event_uid' => $events['uid'],
    			],
    		);

    and date in event created is on day date … not on 2019/09/24…

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.