Changeset 2526 for trunk/wp-includes/functions.php
- Timestamp:
- 04/10/2005 08:07:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r2525 r2526 85 85 $weekday = date('w',$day); 86 86 $i = 86400; 87 88 if ($weekday < get_settings('start_of_week')) 89 $weekday = 7 - (get_settings('start_of_week') - $weekday); 90 87 91 while ($weekday > get_settings('start_of_week')) { 88 92 $weekday = date('w',$day); 93 if ($weekday < get_settings('start_of_week')) 94 $weekday = 7 - (get_settings('start_of_week') - $weekday); 95 89 96 $day = $day - 86400; 90 97 $i = 0; 91 98 } 92 99 $week['start'] = $day + 86400 - $i; 93 $week['end'] = $day + 691199; 100 //$week['end'] = $day - $i + 691199; 101 $week['end'] = $week['start'] + 604799; 94 102 return $week; 95 103 }
Note: See TracChangeset
for help on using the changeset viewer.