{"id":1130842,"date":"2016-06-23T05:09:12","date_gmt":"2016-06-23T12:09:12","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/"},"modified":"2016-06-23T05:09:12","modified_gmt":"2016-06-23T12:09:12","slug":"dates-not-showing-correctly","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/","title":{"rendered":"Dates not showing correctly"},"content":{"rendered":"<p>Times messed up here in the tab: http:\/\/prntscr.com\/bjz47z http:\/\/www.funinjerusalem.com\/israel-museum\/#events<br \/>\nTime works on single event: http:\/\/www.funinjerusalem.com\/event\/big-art-little-artist\/2016-06-27\/<br \/>\nHere&#8217;s the code for the times on the Events tab:<br \/>\nIt used to work, but somewhat recently has stopped working (not sure exactly when)<br \/>\nAny help is greatly appreciated.<br \/>\n&lt;?php  <\/p>\n<p>\t\t\t\t\t\t$start_date = tribe_get_start_date($event-&gt;ID,true,&#8217;F d Y g:H&#8217;);<br \/>\n                               $end_date = tribe_get_end_date($event-&gt;ID,true,&#8217;F d Y g:H&#8217;);<br \/>\n\t\t\t\t\t\t$this_event_date = &#8221;;<br \/>\n\t\t\t\t\t\t$start = new DateTime( $start_date );<br \/>\n\t\t\t\t\t\t$end   = new DateTime( $end_date);<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Get number of days between by finding seconds between and dividing by # of seconds in a day<br \/>\n\t\t\t\t\t\t$days  = round( ( $end-&gt;format( &#8216;U&#8217; ) &#8211; $start-&gt;format( &#8216;U&#8217; ) ) \/ ( 60 * 60 * 24 ) );<\/p>\n<p>\t\t\t\t\t\tif ($days == 0 ){<br \/>\n\t\t\t\t\t\t\t$end_date = date_format($end, &#8216;g:i A&#8217;);<br \/>\n\t\t\t\t\t\t}<br \/>\n                        if(tribe_event_is_all_day($event-&gt;ID)){<br \/>\n                            $this_event_date = date_format($start, &#8216;F d, Y&#8217;);<br \/>\n                        }<br \/>\n                        else{<br \/>\n                            $this_event_date = date_format($start, &#8216;F d Y @ g:H&#8217;) . &#8216; &#8211; &#8216; . $end_date;<br \/>\n                        }<br \/>\n\t\t\t\t\t\t?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1130842","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>Dates not showing correctly -<\/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\/dates-not-showing-correctly\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dates not showing correctly -\" \/>\n<meta property=\"og:description\" content=\"Times messed up here in the tab: http:\/\/prntscr.com\/bjz47z http:\/\/www.funinjerusalem.com\/israel-museum\/#events Time works on single event: http:\/\/www.funinjerusalem.com\/event\/big-art-little-artist\/2016-06-27\/ Here&#8217;s the code for the times on the Events tab: It used to work, but somewhat recently has stopped working (not sure exactly when) Any help is greatly appreciated. &lt;?php $start_date = tribe_get_start_date($event-&gt;ID,true,&#8217;F d Y g:H&#8217;); $end_date = tribe_get_end_date($event-&gt;ID,true,&#8217;F d [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/\" \/>\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\/dates-not-showing-correctly\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/\",\"name\":\"Dates not showing correctly -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-06-23T12:09:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/#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\":\"Dates not showing correctly\"}]},{\"@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":"Dates not showing correctly -","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\/dates-not-showing-correctly\/","og_locale":"en_US","og_type":"article","og_title":"Dates not showing correctly -","og_description":"Times messed up here in the tab: http:\/\/prntscr.com\/bjz47z http:\/\/www.funinjerusalem.com\/israel-museum\/#events Time works on single event: http:\/\/www.funinjerusalem.com\/event\/big-art-little-artist\/2016-06-27\/ Here&#8217;s the code for the times on the Events tab: It used to work, but somewhat recently has stopped working (not sure exactly when) Any help is greatly appreciated. &lt;?php $start_date = tribe_get_start_date($event-&gt;ID,true,&#8217;F d Y g:H&#8217;); $end_date = tribe_get_end_date($event-&gt;ID,true,&#8217;F d [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/","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\/dates-not-showing-correctly\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/","name":"Dates not showing correctly -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-06-23T12:09:12+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/dates-not-showing-correctly\/#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":"Dates not showing correctly"}]},{"@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\/1130842","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\/1130842\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1130842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}