{"id":1327654,"date":"2017-07-28T12:34:55","date_gmt":"2017-07-28T19:34:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/"},"modified":"2017-07-28T12:34:55","modified_gmt":"2017-07-28T19:34:55","slug":"tribe_create_event-eventstartdate-incorrect","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/","title":{"rendered":"tribe_create_event() EventStartDate incorrect"},"content":{"rendered":"<p>I have reviewed the documentation and the posts that I could find &#8230; but cannot determine why my Event Date is being recorded as &#8220;1969-12-31&#8221; &#8230; which sounds a LOT like 0000-00-00 to me.<\/p>\n<p>The $args parameter I&#8217;m passing to the function is (print_r output):<\/p>\n<p><code>Array<br \/>\n(<br \/>\n    [post_title] =&gt; My Cool Event<br \/>\n    [post_content] =&gt; <\/p>\n<h2>My Cool Event Content<\/h2>\n<p>yada yada yada<\/p>\n<p>    [post_status] =&gt; publish<br \/>\n    [comment_status] =&gt; closed<br \/>\n    [post_category] =&gt; Array<br \/>\n        (<br \/>\n            [0] =&gt; 6<br \/>\n        )<\/p>\n<p>    [ping_status] =&gt; closed<br \/>\n    [EventStartDate] =&gt; 2017-07-31 00:00:00<br \/>\n    [EventEndDate] =&gt; 2017-07-31 00:00:00<br \/>\n    [EventStartHour] =&gt; 12<br \/>\n    [EventStartMinute] =&gt; 00<br \/>\n    [EventStartMeridian] =&gt; am<br \/>\n    [EventEndHour] =&gt; 12<br \/>\n    [EventEndMinute] =&gt; 00<br \/>\n    [EventEndMeridian] =&gt; am<br \/>\n    [EventShowMap] =&gt; 1<br \/>\n    [EventURL] =&gt; http:\/\/wgasc.dcpsandbox.com\/wgasc-events\/?eventID=250<br \/>\n    [Venue] =&gt; Array<br \/>\n        (<br \/>\n            [Venue] =&gt; Aliso Niguel HS<br \/>\n            [Address] =&gt; 28800 Wolverine Way<br \/>\n            [City] =&gt; Aliso Viejo<br \/>\n            [State] =&gt; CA<br \/>\n            [Zip] =&gt; 92656<br \/>\n            [post_status] =&gt; publish<br \/>\n            [EventShowMap] =&gt; 1<br \/>\n        )<\/p>\n<p>    [tax_input] =&gt; Array<br \/>\n        (<br \/>\n            [tribe_events_cat] =&gt; Array<br \/>\n                (<br \/>\n                    [0] =&gt; 6<br \/>\n                )<\/p>\n<p>        )<\/p>\n<p>)<\/code><\/p>\n<p>I have tried different date formats, different time values &#8211; all to no avail.<\/p>\n<p>I&#8217;m pretty sure it is something simple and stupid that I&#8217;m overlooking.  Please advise.<\/p>\n<p>Thanks.<\/p>\n<p>-john<\/p>\n","protected":false},"template":"","class_list":["post-1327654","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>tribe_create_event() EventStartDate incorrect -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tribe_create_event() EventStartDate incorrect -\" \/>\n<meta property=\"og:description\" content=\"I have reviewed the documentation and the posts that I could find &#8230; but cannot determine why my Event Date is being recorded as &#8220;1969-12-31&#8221; &#8230; which sounds a LOT like 0000-00-00 to me. The $args parameter I&#8217;m passing to the function is (print_r output): Array ( [post_title] =&gt; My Cool Event [post_content] =&gt; My [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/\",\"name\":\"tribe_create_event() EventStartDate incorrect -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-07-28T19:34:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"tribe_create_event() EventStartDate incorrect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"tribe_create_event() EventStartDate incorrect -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/","og_locale":"en_US","og_type":"article","og_title":"tribe_create_event() EventStartDate incorrect -","og_description":"I have reviewed the documentation and the posts that I could find &#8230; but cannot determine why my Event Date is being recorded as &#8220;1969-12-31&#8221; &#8230; which sounds a LOT like 0000-00-00 to me. The $args parameter I&#8217;m passing to the function is (print_r output): Array ( [post_title] =&gt; My Cool Event [post_content] =&gt; My [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/","name":"tribe_create_event() EventStartDate incorrect -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-07-28T19:34:55+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-eventstartdate-incorrect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"tribe_create_event() EventStartDate incorrect"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1327654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1327654\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1327654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}