All-in-One Event Calendar - Version 1.1.1

Version Description

Download this release

Release Info

Developer theseed
Plugin Icon 128x128 All-in-One Event Calendar
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

all-in-one-event-calendar.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: All-in-One Event Calendar Plugin
4
  * Plugin URI: http://theseednetwork.com/software/all-in-one-event-calendar-wordpress/
5
  * Description: An event calendar system with month and agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
6
- * Version: 1.1
7
  * Author: The Seed Studio
8
  * Author URI: http://theseednetwork.com/
9
  */
3
  * Plugin Name: All-in-One Event Calendar Plugin
4
  * Plugin URI: http://theseednetwork.com/software/all-in-one-event-calendar-wordpress/
5
  * Description: An event calendar system with month and agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
6
+ * Version: 1.1.1
7
  * Author: The Seed Studio
8
  * Author URI: http://theseednetwork.com/
9
  */
app/helper/class-ai1ec-events-helper.php CHANGED
@@ -1048,12 +1048,17 @@ class Ai1ec_Events_Helper {
1048
  if( $origin_tz === null )
1049
  if( ! is_string( $origin_tz = date_default_timezone_get() ) )
1050
  return false; // A UTC timestamp was returned -- bail out!
1051
-
1052
- $origin_dtz = new DateTimeZone( $origin_tz );
1053
- $remote_dtz = new DateTimeZone( $remote_tz );
1054
- $origin_dt = new DateTime( gmdate( 'Y-m-d H:i:s', $timestamp ), $origin_dtz );
1055
- $remote_dt = new DateTime( gmdate( 'Y-m-d H:i:s', $timestamp ), $remote_dtz );
1056
- $offset = $origin_dtz->getOffset( $origin_dt ) - $remote_dtz->getOffset( $remote_dt );
 
 
 
 
 
1057
 
1058
  return $offset;
1059
  }
1048
  if( $origin_tz === null )
1049
  if( ! is_string( $origin_tz = date_default_timezone_get() ) )
1050
  return false; // A UTC timestamp was returned -- bail out!
1051
+
1052
+ try {
1053
+ $origin_dtz = new DateTimeZone( $origin_tz );
1054
+ $remote_dtz = new DateTimeZone( $remote_tz );
1055
+
1056
+ $origin_dt = new DateTime( gmdate( 'Y-m-d H:i:s', $timestamp ), $origin_dtz );
1057
+ $remote_dt = new DateTime( gmdate( 'Y-m-d H:i:s', $timestamp ), $remote_dtz );
1058
+ $offset = $origin_dtz->getOffset( $origin_dt ) - $remote_dtz->getOffset( $remote_dt );
1059
+ } catch( Exception $e ) {
1060
+ return false;
1061
+ }
1062
 
1063
  return $offset;
1064
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://theseednetwork.com/software/all-in-one-event-calendar-wordpr
4
  Tags: calendar, event, events, ics, ics calendar, ical-feed, ics feed, wordpress ics importer, wordpress ical importer, upcoming events, todo, notes, journal, freebusy, availability, web calendar, web events, webcal, google calendar, ical, iCalendar, all-in-one, ai1ec, google calendar sync, ical sync, events sync, holiday calendar, calendar 2011, events 2011, widget, events widget, upcoming events widget, calendar widget, agenda widget
5
  Requires at least: 3.1.3
6
  Tested up to: 3.2.1
7
- Stable tag: 1.1
8
 
9
  An event calendar system with month and agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
10
 
@@ -57,6 +57,9 @@ The All-in-One Event Calendar Plugin also has a few features that will prove use
57
  [Get Premium Support »](http://theseednetwork.com/get-supported) from [The Seed Studio »](http:/theseednetwork.com/)
58
 
59
  == Changelog ==
 
 
 
60
  = Version 1.1 =
61
  * Feature: New recurrence UI when adding events [#40](http://trac.the-seed.ca/ticket/40)
62
  * Feature: Translate recurrence rule to Human readable format that allows localization [#40](http://trac.the-seed.ca/ticket/40)
4
  Tags: calendar, event, events, ics, ics calendar, ical-feed, ics feed, wordpress ics importer, wordpress ical importer, upcoming events, todo, notes, journal, freebusy, availability, web calendar, web events, webcal, google calendar, ical, iCalendar, all-in-one, ai1ec, google calendar sync, ical sync, events sync, holiday calendar, calendar 2011, events 2011, widget, events widget, upcoming events widget, calendar widget, agenda widget
5
  Requires at least: 3.1.3
6
  Tested up to: 3.2.1
7
+ Stable tag: 1.1.1
8
 
9
  An event calendar system with month and agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
10
 
57
  [Get Premium Support »](http://theseednetwork.com/get-supported) from [The Seed Studio »](http:/theseednetwork.com/)
58
 
59
  == Changelog ==
60
+ = Version 1.1.1 =
61
+ * Fixes a problem when plugin is enabled for first time
62
+
63
  = Version 1.1 =
64
  * Feature: New recurrence UI when adding events [#40](http://trac.the-seed.ca/ticket/40)
65
  * Feature: Translate recurrence rule to Human readable format that allows localization [#40](http://trac.the-seed.ca/ticket/40)