{"id":946429,"date":"2015-03-06T03:09:56","date_gmt":"2015-03-06T11:09:56","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/"},"modified":"2015-04-30T04:58:50","modified_gmt":"2015-04-30T11:58:50","slug":"calendar-view-on-mobile-shows-dates-from-previous-month","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/","title":{"rendered":"Calendar View on Mobile Shows Dates from Previous Month"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&#8217;ve seen that this bug has already been reported in the forum <a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-filtering-showing-incorrect-events\/\">here<\/a> but since the topic is closed, I can&#8217;t reply to the topic anymore.<\/p>\n<p>I just wanted to tell you that I figured where the bug is and made a fix for it, in case you haven&#8217;t found it yet yourselves.<\/p>\n<p>The bug is located in \/the-events-calendar\/resources\/tribe-events-ajax-calendar.js on line 120 in the tribe_mobile_load_events function<\/p>\n<pre><code>\t\tfunction tribe_mobile_load_events( date ) {\n\n\t\t\tvar date_adj = date;\n\t\t\tif ( date &lt; 10 ) {\n\t\t\t\tdate_adj = &#039;0&#039; + date;\n\t\t\t}\n\n\t\t\tvar $target = $( &#039;.tribe-mobile-day[data-day=&quot;&#039; + date + &#039;&quot;]&#039; ),\n\t\t\t\t$more = $( &#039;.tribe-event-day-&#039; + date_adj + &#039; .tribe-events-viewmore&#039; ),\n\t\t\t\t$events = $( &#039;.tribe-event-day-&#039; + date_adj + &#039; .hentry&#039; );<\/code><\/pre>\n<p>should be<\/p>\n<pre><code>\t\tfunction tribe_mobile_load_events( date ) {\n\n\t\t\tvar date_adj = date;\n\t\t\tif ( date &lt; 10 ) {\n\t\t\t\tdate_adj = &#039;0&#039; + date;\n\t\t\t}\n\n\t\t\tvar $target = $( &#039;.tribe-mobile-day[data-day=&quot;&#039; + date + &#039;&quot;]&#039; ),\n\t\t\t\t$more = $( &#039;.tribe-event-day-&#039; + date_adj + &#039; .tribe-events-viewmore&#039; ),\n\t\t\t\t$events = $( &#039;.tribe-event-day-&#039; + date_adj + &#039; .hentry&#039; );<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-946429","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>Calendar View on Mobile Shows Dates from Previous Month -<\/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\/calendar-view-on-mobile-shows-dates-from-previous-month\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calendar View on Mobile Shows Dates from Previous Month -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;ve seen that this bug has already been reported in the forum here but since the topic is closed, I can&#8217;t reply to the topic anymore. I just wanted to tell you that I figured where the bug is and made a fix for it, in case you haven&#8217;t found it yet yourselves. The [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-30T11:58:50+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\/calendar-view-on-mobile-shows-dates-from-previous-month\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/\",\"name\":\"Calendar View on Mobile Shows Dates from Previous Month -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-03-06T11:09:56+00:00\",\"dateModified\":\"2015-04-30T11:58:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/#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\":\"Calendar View on Mobile Shows Dates from Previous Month\"}]},{\"@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":"Calendar View on Mobile Shows Dates from Previous Month -","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\/calendar-view-on-mobile-shows-dates-from-previous-month\/","og_locale":"en_US","og_type":"article","og_title":"Calendar View on Mobile Shows Dates from Previous Month -","og_description":"Hi, I&#8217;ve seen that this bug has already been reported in the forum here but since the topic is closed, I can&#8217;t reply to the topic anymore. I just wanted to tell you that I figured where the bug is and made a fix for it, in case you haven&#8217;t found it yet yourselves. The [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/","article_modified_time":"2015-04-30T11:58:50+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\/calendar-view-on-mobile-shows-dates-from-previous-month\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/","name":"Calendar View on Mobile Shows Dates from Previous Month -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-03-06T11:09:56+00:00","dateModified":"2015-04-30T11:58:50+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-on-mobile-shows-dates-from-previous-month\/#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":"Calendar View on Mobile Shows Dates from Previous Month"}]},{"@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\/946429","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\/946429\/revisions"}],"predecessor-version":[{"id":946453,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/946429\/revisions\/946453"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=946429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}