{"id":53256,"date":"2013-07-04T09:18:55","date_gmt":"2013-07-04T16:18:55","guid":{"rendered":"https:\/\/tri.be\/support\/forums\/topic\/v3-possible-bug-with-end-date\/"},"modified":"2015-07-07T06:27:21","modified_gmt":"2015-07-07T13:27:21","slug":"v3-possible-bug-with-end-date","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/","title":{"rendered":"V3: Possible bug with end date"},"content":{"rendered":"<p>Hi, I&#8217;m Greg.<\/p>\n<p>Issue: the end date of an event is registered but the single view display the current date\/hour.<br \/>\nEditing an event, the dates are ok: https:\/\/www.dropbox.com\/s\/yr4gq5o78rhyvgf\/Screenshot%202013-07-04%2017.45.41.png<\/p>\n<p>In the front-end single view, the end date is the current time (in French): https:\/\/www.dropbox.com\/s\/2msnwqmmzn65hlp\/Screenshot%202013-07-04%2017.47.10.png<\/p>\n<p>Digging further:<br \/>\nUse something like print_r($event); in public\/template-tags\/date.php: L70 (method tribe_get_end_date)<br \/>\nGo to the single view, the object is printed 8 times.<br \/>\nFor the 2 first ones we have this: https:\/\/www.dropbox.com\/s\/7ir4lu85pqvo467\/Screenshot%202013-07-04%2017.54.04.png The EventEndDate field is empty (I don&#8217;t know if it&#8217;s the normal behavior, but it does not feel right to me).<br \/>\nFor the 6 other ones we have this: https:\/\/www.dropbox.com\/s\/oak6mbtgjlipang\/Screenshot%202013-07-04%2017.56.33.png The EventEndDate field contains the good date, but &#8220;strtotimed&#8221;. I think this is the problem, because in this method we have a strtotime() 5 lines later, so the field should contain &#8216;2013-07-24 12:00:00&#8217; or be empty.<br \/>\nAt the line 72 there&#8217;s $event-&gt;EventEndDate = tribe_get_event_meta( $event-&gt;ID, &#8216;_EventEndDate&#8217;, true );<br \/>\nIf I force this, by removing the &#8220;if&#8221; test, the value is well formed and the good date is displayed (some print_r() still show the &#8220;readable&#8221; format though).<\/p>\n<p>I hope this will help to find the culprit \ud83d\ude09 and&#8230; Happy Independence Day!<br \/>\nGreg<\/p>\n","protected":false},"template":"","class_list":["post-53256","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>V3: Possible bug with end date -<\/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\/v3-possible-bug-with-end-date\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"V3: Possible bug with end date -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;m Greg. Issue: the end date of an event is registered but the single view display the current date\/hour. Editing an event, the dates are ok: https:\/\/www.dropbox.com\/s\/yr4gq5o78rhyvgf\/Screenshot%202013-07-04%2017.45.41.png In the front-end single view, the end date is the current time (in French): https:\/\/www.dropbox.com\/s\/2msnwqmmzn65hlp\/Screenshot%202013-07-04%2017.47.10.png Digging further: Use something like print_r($event); in public\/template-tags\/date.php: L70 (method tribe_get_end_date) Go [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:27:21+00:00\" \/>\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\/v3-possible-bug-with-end-date\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/\",\"name\":\"V3: Possible bug with end date -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-07-04T16:18:55+00:00\",\"dateModified\":\"2015-07-07T13:27:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/#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\":\"V3: Possible bug with end date\"}]},{\"@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":"V3: Possible bug with end date -","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\/v3-possible-bug-with-end-date\/","og_locale":"en_US","og_type":"article","og_title":"V3: Possible bug with end date -","og_description":"Hi, I&#8217;m Greg. Issue: the end date of an event is registered but the single view display the current date\/hour. Editing an event, the dates are ok: https:\/\/www.dropbox.com\/s\/yr4gq5o78rhyvgf\/Screenshot%202013-07-04%2017.45.41.png In the front-end single view, the end date is the current time (in French): https:\/\/www.dropbox.com\/s\/2msnwqmmzn65hlp\/Screenshot%202013-07-04%2017.47.10.png Digging further: Use something like print_r($event); in public\/template-tags\/date.php: L70 (method tribe_get_end_date) Go [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/","article_modified_time":"2015-07-07T13:27:21+00:00","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\/v3-possible-bug-with-end-date\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/","name":"V3: Possible bug with end date -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-07-04T16:18:55+00:00","dateModified":"2015-07-07T13:27:21+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/v3-possible-bug-with-end-date\/#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":"V3: Possible bug with end date"}]},{"@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\/53256","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/53256\/revisions"}],"predecessor-version":[{"id":980121,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/53256\/revisions\/980121"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=53256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}