Plugin Directory

Changeset 712484


Ignore:
Timestamp:
05/13/2013 04:20:04 PM (13 years ago)
Author:
markpdxt
Message:

Fix date conversion issue

Location:
sync-facebook-events/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sync-facebook-events/trunk/readme.txt

    r704796 r712484  
    44Requires at least: 3.0
    55Tested up to: 3.5.1
    6 Stable tag: 1.0.9
     6Stable tag: 1.0.8
    77
    88A simple plugin to Sync Facebook events to The Events Calendar plugin by Modern Tribe.
  • sync-facebook-events/trunk/sync-facebook-events.php

    r704795 r712484  
    55Description: Sync Facebook Events to The Events Calendar Plugin
    66Author: Mark Nelson
    7 Version: 1.0.7
    8 Revision by: Sam Haines (Wordpress username shaines1)
     7Version: 1.0.8
    98Author URI: http://pdxt.com
    109*/
     
    115114            $eids[$eid] = $post->ID;
    116115        }
    117 //if you're reading this and you want to delete all those duplicate events, uncomment this temporarially. Note, it will also delete all manually made events since June 13
    118 //http://codex.wordpress.org/Version_3.4 - June 13, 2012
    119 //depending on many duplicates you had, you might end up re-loading this script a bunch of times after it times out. Me, I had 14k duplicates. Had to run the script like 10 times.
    120 /*
    121         else {
    122             $post_date = trim(substr($post->post_date, 0, 10));
    123             if($post->post_date > '2012-06-12')
    124                 wp_delete_post($post->ID);
    125         }
    126 */
    127116    }
    128117    //file_put_contents($_SERVER['DOCUMENT_ROOT'].'/fbevent.log', print_r(array(time(),$events,$eids),1)."\n".str_repeat('=',40)."\n", FILE_APPEND);
     
    133122        $offset = get_option('gmt_offset')*3600;
    134123       
    135         $offsetStart = strtotime($event['start_time'])+$offset;
     124        //$offsetStart = strtotime($event['start_time'])+$offset;
     125        $offsetStart =($event['start_time'])+$offset;
     126       
    136127        $offsetEnd = $event['end_time']+$offset;
    137128       
Note: See TracChangeset for help on using the changeset viewer.