Date string encoding, Config Issue? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Date string encoding, Config Issue? (/showthread.php?tid=29411) |
Date string encoding, Config Issue? - El Forum - 04-08-2010 [eluser]novice32[/eluser] Hello, This works in localhost (XAMPP / Windows) but not in production (CentOS Linux). In the application GUI I enter "04/09/2010" which is sent via POST as string "ItemFoundDate=04/09/2010". However, in the controller the below assignment throws an 500 error. Code: $ItemFoundDate = date("Y-m-d", strtotime($this->input->post('ItemFoundDate'))); Code: $ItemFoundDate = $this->input->post('ItemFoundDate'); Could this be a config setting? Please advise. Novice32 Date string encoding, Config Issue? - El Forum - 04-09-2010 [eluser]novice32[/eluser] I'm really baffled by this one because I have another controller method ( the "Add" record version), which has the same line of code and works fine... Code: $ItemFoundDate = date("Y-m-d", strtotime($this->input->post('ItemFoundDate'))); Date string encoding, Config Issue? - El Forum - 04-09-2010 [eluser]novice32[/eluser] Don't worry.. please IGNORE thread.. I found the issue. I needed to enable write access to my logs directory |