File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 88 * @category Libraries
99 * @author Jeevan Lal
1010 * @license MIT
11- * @version 1.1.5
11+ * @version 1.1.6
1212 */
1313class API_Controller extends CI_Controller
1414{
@@ -241,12 +241,12 @@ public function _limit_method(array $data)
241241
242242 $ bad_date = mdate ('%d-%m-%Y ' , time ());
243243
244- $ start_date = nice_date ($ bad_date , 'd/m/ Y h:i A ' ); // {DATE} 12:00 AM
245- $ end_date = nice_date ($ bad_date .' 12:00 PM ' , 'd/m/ Y h:i A ' ); // {DATE} 12:00 PM
244+ $ start_date = nice_date ($ bad_date . ' 12:00 AM ' , 'd-m- Y h:i A ' ); // {DATE} 12:00 AM
245+ $ end_date = nice_date ($ bad_date .' 12:00 PM ' , 'd-m- Y h:i A ' ); // {DATE} 12:00 PM
246246
247247 $ start_date_timestamp = strtotime ($ start_date );
248248 $ end_date_timestamp = strtotime ($ end_date );
249-
249+
250250 $ where_data_ip_with_time = [
251251 'uri ' => $ this ->CI ->uri ->uri_string (),
252252 'class ' => $ this ->CI ->router ->fetch_class (),
Original file line number Diff line number Diff line change 11# Fix Bug
22
3+ ## v.1.1.6
4+
5+ * fix bug in API Limit
6+
37## v.1.1.5
48
59* If the database library did not load, the error was shown
Original file line number Diff line number Diff line change 1- # CodeIgniter API Controller v.1.1.5
1+ # CodeIgniter API Controller v.1.1.6
22
33## Files
44
@@ -113,6 +113,11 @@ The name of the database table of api limit is `api_limit` by default. Which we
113113 * API Limit database table name
114114 */
115115$config['api_limit_table_name'] = 'api_limit';
116+
117+ /**
118+ * Set API Timezone
119+ */
120+ $config['api_timezone'] = 'Asia/Kolkata';
116121```
117122Now we can use API Limit Method.
118123
You can’t perform that action at this time.
0 commit comments