Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php |
— | — | @@ -242,7 +242,7 @@ |
243 | 243 | // and years (same - note that the previous or next month could |
244 | 244 | // be in a different year), the number of days in the current, |
245 | 245 | // previous and next months, etc. |
246 | | - $cur_month_num = date( "n", mktime() ); |
| 246 | + $cur_month_num = date( "n", time() ); |
247 | 247 | if ( $wgRequest->getCheck( 'month' ) ) { |
248 | 248 | $query_month = $wgRequest->getVal( 'month' ); |
249 | 249 | if ( is_numeric( $query_month ) && ( intval( $query_month ) == $query_month ) && $query_month >= 1 && $query_month <= 12 ) { |
— | — | @@ -250,7 +250,7 @@ |
251 | 251 | } |
252 | 252 | } |
253 | 253 | $cur_month = SRFCalendar::intToMonth( $cur_month_num ); |
254 | | - $cur_year = date( "Y", mktime() ); |
| 254 | + $cur_year = date( "Y", time() ); |
255 | 255 | if ( $wgRequest->getCheck( 'year' ) ) { |
256 | 256 | $query_year = $wgRequest->getVal( 'year' ); |
257 | 257 | if ( is_numeric( $query_year ) && intval( $query_year ) == $query_year ) { |
— | — | @@ -290,7 +290,7 @@ |
291 | 291 | $start_day = 1 - $day_of_week_of_1; |
292 | 292 | $days_in_prev_month = SRFCHistoricalDate::daysInMonth( $prev_year, $prev_month_num ); |
293 | 293 | $days_in_cur_month = SRFCHistoricalDate::daysInMonth( $cur_year, $cur_month_num ); |
294 | | - $today_string = date( "Y n j", mktime() ); |
| 294 | + $today_string = date( "Y n j", time() ); |
295 | 295 | $url_year = $wgRequest->getVal( 'year' ); |
296 | 296 | $page_name = $page_title->getPrefixedDbKey(); |
297 | 297 | |