Changeset 712484
- Timestamp:
- 05/13/2013 04:20:04 PM (13 years ago)
- Location:
- sync-facebook-events/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
sync-facebook-events.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sync-facebook-events/trunk/readme.txt
r704796 r712484 4 4 Requires at least: 3.0 5 5 Tested up to: 3.5.1 6 Stable tag: 1.0. 96 Stable tag: 1.0.8 7 7 8 8 A simple plugin to Sync Facebook events to The Events Calendar plugin by Modern Tribe. -
sync-facebook-events/trunk/sync-facebook-events.php
r704795 r712484 5 5 Description: Sync Facebook Events to The Events Calendar Plugin 6 6 Author: Mark Nelson 7 Version: 1.0.7 8 Revision by: Sam Haines (Wordpress username shaines1) 7 Version: 1.0.8 9 8 Author URI: http://pdxt.com 10 9 */ … … 115 114 $eids[$eid] = $post->ID; 116 115 } 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 13118 //http://codex.wordpress.org/Version_3.4 - June 13, 2012119 //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 */127 116 } 128 117 //file_put_contents($_SERVER['DOCUMENT_ROOT'].'/fbevent.log', print_r(array(time(),$events,$eids),1)."\n".str_repeat('=',40)."\n", FILE_APPEND); … … 133 122 $offset = get_option('gmt_offset')*3600; 134 123 135 $offsetStart = strtotime($event['start_time'])+$offset; 124 //$offsetStart = strtotime($event['start_time'])+$offset; 125 $offsetStart =($event['start_time'])+$offset; 126 136 127 $offsetEnd = $event['end_time']+$offset; 137 128
Note: See TracChangeset
for help on using the changeset viewer.