Daylight Savings Time?

Home Forums Calendar Products Event Aggregator Daylight Savings Time?

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1081865
    Tim
    Participant

    Hi,

    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,
    Tim

    #1082181
    Cliff
    Member

    Hi 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.

    #1082214
    Tim
    Participant

    This reply is private.

    #1082235
    Cliff
    Member

    What URL are you using as the import (something that ends in .ics or just that link that ends in .html)?

    #1082238
    Tim
    Participant

    This reply is private.

    #1082276
    Tim
    Participant

    I 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

    #1082412
    Cliff
    Member

    This reply is private.

    #1082531
    Tim
    Participant

    Hi 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' );
    /*
    #1082576
    Cliff
    Member

    This 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.

    #1082587
    Tim
    Participant

    Hi 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 (:

    #1082664
    Cliff
    Member

    If 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.

    #1082671
    Tim
    Participant

    I 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.

    #1082673
    Tim
    Participant

    This reply is private.

    #1083450
    Cliff
    Member

    Tim, there’s a meta field added to all posts. You can check out the _uid post_meta field in this screenshot: http://cl.ly/0i2o382N123F

    Here’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?

    #1089161
    Support Droid
    Keymaster

    This 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.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Daylight Savings Time?’ is closed to new replies.