Changeset 512 for trunk/b2-include/b2template.functions.php
- Timestamp:
- 11/03/2003 05:49:15 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/b2-include/b2template.functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2template.functions.php
r511 r512 248 248 // We need to get the month from MySQL 249 249 $thisyear = ''.intval(substr($m, 0, 4)); 250 $d = (($w - 1) * 7) + 6; //it seems mysqls weeks disagree with php's250 $d = (($w - 1) * 7) + 6; //it seems MySQL's weeks disagree with PHP's 251 251 $thismonth = $wpdb->get_var("SELECT DATE_FORMAT((DATE_ADD('${thisyear}0101', INTERVAL $d DAY) ), '%m')"); 252 252 } elseif (!empty($m)) { … … 343 343 $newrow = false; 344 344 345 if ($day == date('j', (time() + ($time_difference * 3600))) ) echo '<td id="today">';345 if ($day == date('j', (time() + ($time_difference * 3600))) && $thismonth == date('m', time()+($time_difference * 3600))) echo '<td id="today">'; 346 346 else echo "<td>"; 347 347
Note: See TracChangeset
for help on using the changeset viewer.