Changeset 4462
- Timestamp:
- 12/03/2016 05:27:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/helper-functions.php
r4461 r4462 281 281 $duration_raw = $end - $start; 282 282 283 $duration_days = floor( $duration_raw / DAY_IN_SECONDS ); 283 // Add one second and round up to ensure the end date counts as a day as well 284 $duration_days = ceil( ( $duration_raw + 1 ) / DAY_IN_SECONDS ); 284 285 285 286 return absint( $duration_days );
Note: See TracChangeset
for help on using the changeset viewer.