{"id":1400589,"date":"2017-12-07T11:08:27","date_gmt":"2017-12-07T19:08:27","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/"},"modified":"2017-12-07T11:08:27","modified_gmt":"2017-12-07T19:08:27","slug":"import-xml-reading-utc-timezone-instead-of-los-angeles","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/","title":{"rendered":"Import XML reading UTC timezone instead of Los Angeles"},"content":{"rendered":"<p>Hi, <\/p>\n<p>My site is importing several event feeds from Eventlink and the individual events get set to the timezone of UTC which they should not. The events are actually Los Angeles (PST) timezone. (note &#8211; this is UTC -8 or UTC -7 depending on the time of year). I looked at the code of one of the .ics files and I think I see the issue but not sure what to do about it. <\/p>\n<p><code>BEGIN:VCALENDAR<br \/>\nPRODID:-\/\/Google Inc\/\/Google Calendar 70.9054\/\/EN<br \/>\nVERSION:2.0<br \/>\nCALSCALE:GREGORIAN<br \/>\nMETHOD:PUBLISH<br \/>\nX-WR-CALNAME:Army and Navy Academy<br \/>\nX-WR-TIMEZONE:UTC<br \/>\nBEGIN:VTIMEZONE<br \/>\nTZID:America\/Los_Angeles<br \/>\nX-LIC-LOCATION:America\/Los_Angeles<br \/>\nBEGIN:DAYLIGHT<br \/>\nTZOFFSETFROM:-0800<br \/>\nTZOFFSETTO:-0700<br \/>\nTZNAME:PDT<br \/>\nDTSTART:19700308T020000<br \/>\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU<br \/>\nEND:DAYLIGHT<br \/>\nBEGIN:STANDARD<br \/>\nTZOFFSETFROM:-0700<br \/>\nTZOFFSETTO:-0800<br \/>\nTZNAME:PST<br \/>\nDTSTART:19701101T020000<br \/>\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU<br \/>\nEND:STANDARD<br \/>\nEND:VTIMEZONE<br \/>\nBEGIN:VEVENT<br \/>\n<\/code><\/p>\n<p>As you can see in the code, the X-WR-TIMEZONE is set to UTC which I believe is what Events Calendar is using as the event timezone during import. What the plugin is failing to do is understand that the timezone is actually -0800 or -0700 (depending on daylight savings) which is listed below it in the TZOFFSETFROM and TZOFFSETTO. <\/p>\n<p>There are also several other spots in the code that show that this should be PDT if you look at the items for TZID, X-LIC-LOCATION, or TZNAME. <\/p>\n<p>3 attached screenshots:<br \/>\n1) screenshot of an imported event on our calendar that shows the import timezone as UTC.<br \/>\n2) screenshot of Event Calendar timezone settings (Events &gt; Settings &gt; General)<br \/>\n3) screenshot of WordPress timezone is set to Los Angeles for this site under Settings &gt; General<\/p>\n<p>Lastly, here is the .ics feed I referenced above:<br \/>\nhttps:\/\/calendar.google.com\/calendar\/ical\/b0bkgetcceub0ijrvqcns05q3im8dagv%40import.calendar.google.com\/public\/basic.ics<\/p>\n","protected":false},"template":"","class_list":["post-1400589","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>Import XML reading UTC timezone instead of Los Angeles -<\/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\/import-xml-reading-utc-timezone-instead-of-los-angeles\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Import XML reading UTC timezone instead of Los Angeles -\" \/>\n<meta property=\"og:description\" content=\"Hi, My site is importing several event feeds from Eventlink and the individual events get set to the timezone of UTC which they should not. The events are actually Los Angeles (PST) timezone. (note &#8211; this is UTC -8 or UTC -7 depending on the time of year). I looked at the code of one [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/\",\"name\":\"Import XML reading UTC timezone instead of Los Angeles -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-12-07T19:08:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/#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\":\"Event Aggregator\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Import XML reading UTC timezone instead of Los Angeles\"}]},{\"@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":"Import XML reading UTC timezone instead of Los Angeles -","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\/import-xml-reading-utc-timezone-instead-of-los-angeles\/","og_locale":"en_US","og_type":"article","og_title":"Import XML reading UTC timezone instead of Los Angeles -","og_description":"Hi, My site is importing several event feeds from Eventlink and the individual events get set to the timezone of UTC which they should not. The events are actually Los Angeles (PST) timezone. (note &#8211; this is UTC -8 or UTC -7 depending on the time of year). I looked at the code of one [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/","name":"Import XML reading UTC timezone instead of Los Angeles -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-12-07T19:08:27+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/import-xml-reading-utc-timezone-instead-of-los-angeles\/#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":"Event Aggregator","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/"},{"@type":"ListItem","position":5,"name":"Import XML reading UTC timezone instead of Los Angeles"}]},{"@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\/1400589","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\/1400589\/revisions"}],"predecessor-version":[{"id":1505385,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1400589\/revisions\/1505385"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1400589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}