Further clarify timestamp format in comments
这个提交包含在:
		
							父节点
							
								
									2daf46d870
								
							
						
					
					
						当前提交
						033971ad09
					
				
					共有  1 个文件被更改,包括 7 次插入 和 3 次删除
				
			
		| 
						 | 
					@ -455,14 +455,18 @@ class API extends CI_Controller {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* ENDPOINT for Rig Control */
 | 
						/*
 | 
				
			||||||
 | 
						* ENDPOINT for Rig Control
 | 
				
			||||||
 | 
						*
 | 
				
			||||||
 | 
						* Note: timestamp should always be in UTC
 | 
				
			||||||
 | 
						*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	function radio() {
 | 
						function radio() {
 | 
				
			||||||
		header('Content-type: application/json');
 | 
							header('Content-type: application/json');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$this->load->model('api_model');
 | 
							$this->load->model('api_model');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//$json = '{"radio":"FT-950","frequency":14075,"mode":"SSB","timestamp":"2012/04/07 16:47"}';
 | 
							//$json = '{"radio":"FT-950","frequency":14075,"mode":"SSB","timestamp":"2012/04/07 16:47:31"}';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$this->load->model('cat');
 | 
							$this->load->model('cat');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -477,7 +481,7 @@ class API extends CI_Controller {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if(!isset($obj['timestamp'])) {
 | 
							if(!isset($obj['timestamp'])) {
 | 
				
			||||||
			$obj['timestamp'] = gmdate('Y/m/d H:i:s');
 | 
								$obj['timestamp'] = gmdate('Y/m/d H:i:s'); // in UTC
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Store Result to Database
 | 
							// Store Result to Database
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		正在加载…
	
		在新工单中引用