Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_SetRecurringEvent.php |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | |
106 | 106 | foreach ( $excluded_dates as $date_str ) { |
107 | 107 | $date = SMWDataValueFactory::newTypeIDValue( '_dat', $date_str ); |
108 | | - $excluded_dates_jd[] = $date->getDataItem()->getJD(); |
| 108 | + $excluded_dates_jd[] = $date->getDataItem()->getSerialization(); |
109 | 109 | } |
110 | 110 | break; |
111 | 111 | default: |
— | — | @@ -137,11 +137,11 @@ |
138 | 138 | |
139 | 139 | // Get the Julian day value for both the start and end date. |
140 | 140 | if ( !is_null( $end_date ) ) { |
141 | | - $end_date_jd = $end_date->getDataItem()->getJD(); |
| 141 | + $end_date_jd = $end_date->getDataItem()->getSerialization(); |
142 | 142 | } |
143 | 143 | |
144 | 144 | $cur_date = $start_date; |
145 | | - $cur_date_jd = $start_date->getDataItem()->getJD(); |
| 145 | + $cur_date_jd = $start_date->getDataItem()->getSerialization(); |
146 | 146 | $i = 0; |
147 | 147 | $reached_end_date = false; |
148 | 148 | |
— | — | @@ -175,7 +175,6 @@ |
176 | 176 | |
177 | 177 | $date_str = "$cur_year-$display_month-$cur_day $cur_time"; |
178 | 178 | $cur_date = SMWDataValueFactory::newTypeIDValue( '_dat', $date_str ); |
179 | | - $cur_date_jd = $cur_date->getDataItem()->getJD(); |
180 | 179 | } elseif ( $unit == 'dayofweekinmonth' ) { |
181 | 180 | // e.g., "3rd Monday of every month" |
182 | 181 | $prev_month = $cur_date->getMonth(); |