Home › Forums › Calendar Products › Event Aggregator › Daylight Savings Time?
- This topic has 14 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 25, 2016 at 12:25 am #1081865
Tim
ParticipantHi,
I noticed my events in March get a bit weird starting at Daylight Savings time in March. They are all showing up at 9 am when they should be at 10 am. Is this a bug or will they update to 10 when we get to daylight savings time. Might be a setting I missed.
Thanks,
TimFebruary 25, 2016 at 1:28 pm #1082181Cliff
MemberHi again, Tim.
If you use a named timezone instead of a UTC-offset timezone, DST should be handled accurately.
I see from your system information that you are using a named timezone. Therefore, please follow our Testing for Conflicts Guide and see if that helps narrow down the cause of this.
If it’s still happening with a default WP theme and all other plugins disabled, please provide some links and screenshots to show some examples on your site.
Let us know what you find out.
Thanks.
February 25, 2016 at 3:05 pm #1082214Tim
ParticipantThis reply is private.
February 25, 2016 at 3:31 pm #1082235Cliff
MemberWhat URL are you using as the import (something that ends in .ics or just that link that ends in .html)?
February 25, 2016 at 3:38 pm #1082238Tim
ParticipantThis reply is private.
February 25, 2016 at 4:57 pm #1082276Tim
ParticipantI think I was able to narrow this down a bit. I created a new recurring event in the events calendar (not imported) starting on 2/21/2016 and made it go on for many years recurring every Sunday and the time changes from 10am to 9am on starting March 20th then changes back to 10am on November 6th
Both 3/30 and 11/6 are days we adjust our clocks for daylight savings time.
Daylight Saving Time (United States) 2016 begins at 2:00 AM on Sunday, March 13 and ends at 2:00 AM on Sunday, November 6
February 26, 2016 at 7:35 am #1082412Cliff
MemberThis reply is private.
February 26, 2016 at 9:42 am #1082531Tim
ParticipantHi Cliff, Thank you! It looks like the events calendar removed the events on Saturdays and Sundays that I was talking about. They are still in the outlook .ics file we use to import. Is there a setting I can use to get them back? I just tried to manually import them back in. I think at one point I had deleted them then added some code I saw in another thread.
/* * Prevents iCal importer from saving a copy of "deleted" events */ function tribe_ical_dont_save_deleted () { $ical_importer = Tribe__Events__Ical_Importer__Main::instance(); remove_action( 'before_delete_post', array( $ical_importer, 'deletedEventSave' ) ); } add_action( 'wp_loaded', 'tribe_ical_dont_save_deleted' ); /*February 26, 2016 at 10:11 am #1082576Cliff
MemberThis might be the information you’re looking for:
Once you get events importing via iCal Importer, know that iCal Importer was recently changed to NOT overwrite/update existing (i.e. previously-imported) events, since users might make local changes and wish for those changes to persist.
You should be able to use the tribe_events_ical_importer_overwrite_existing_events filter to re-enable this functionality. For example:
// Allow events that have already been imported to be updated if the source event // is changed and if it was pulled in via a saved recurring import (iCal Importer) add_filter( 'tribe_events_ical_importer_overwrite_existing_events', '__return_true' );This hook can be found in /wp-content/plugins/the-events-calendar-importer-ical/src/Tribe/Importer.php if you’d like to look into it further.
I hope this information helps. Please let me know if you need anything else.
February 26, 2016 at 10:21 am #1082587Tim
ParticipantHi Cliff, I added that code yesterday from a different thread and I think it was working. I just changed the date of my import to go back to 2/20/2015 which is a few days prior to the first day of the recurring event series and hit import again but it removed more of my calendar events.
I really appreciate your quick responses. We have some events starting tomorrow that I need to get back on the calendar (:
February 26, 2016 at 11:44 am #1082664Cliff
MemberIf it removed more of your calendar events, are some of your events updated — i.e. iCal Importer thinks Event A has been edited in the .ics import from one day to another — or something like that?
Is there any pattern you can determine it’s following?
Does it happen with just this ics feed or other feeds as well?
===
Whenever there are wonky things going on, we always ask you to please follow our Testing for Conflicts Guide and see if that helps narrow down the cause of this.
Let us know what you find out.
Thanks.
February 26, 2016 at 11:50 am #1082671Tim
ParticipantI am pretty sure the deleted events were events I had entered directly (manually) in the events calendar. The events are in the .ics file also but it doesn’t bring them into the events calendar with the import. We only use the one feed from the .ics to the events calendar. It might think they were changed but I thought the code we put in would tell the events calendar to update the event to match the .ics file.
I have tested for conflicts and get the same results. I can get you credentials to the site if you want to pop in and take a look at what is going on.
February 26, 2016 at 11:52 am #1082673Tim
ParticipantThis reply is private.
February 29, 2016 at 10:14 am #1083450Cliff
MemberTim, there’s a meta field added to all posts. You can check out the
_uidpost_meta field in this screenshot: http://cl.ly/0i2o382N123FHere’s a way to find all events created via iCal Importer: https:// gist. github.com /cliffordp/71a343dd9956b1303dee#file-events_imported_by_ical_importer-php (without spaces in the URL)
Maybe this will help you troubleshoot?
March 15, 2016 at 9:35 am #1089161Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Daylight Savings Time?’ is closed to new replies.
