Changeset 6209
- Timestamp:
- 12/03/2017 05:28:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r6208 r6209 24 24 define( 'THROTTLE_GEONAMES', 0 ); 25 25 define( 'THROTTLE_IP2LOCATION', 0 ); 26 27 defined( 'DAY_IN_SECONDS' ) or define( 'DAY_IN_SECONDS', 60 * 60 * 24 ); 26 28 27 29 // The test suite just needs the functions defined and doesn't want any headers or output … … 696 698 // Dates are in local-time not UTC, so the API output will contain events that have already happened in some parts of the world. 697 699 // TODO update this when the UTC dates are stored. 698 $sql_values[] = gmdate( 'Y-m-d', time() - ( 24 * 60 * 60 ));700 $sql_values[] = gmdate( 'Y-m-d', time() - DAY_IN_SECONDS ); 699 701 700 702 // Limit
Note: See TracChangeset
for help on using the changeset viewer.