I am using CakePHP2.1.3, and I have two dates. The first is a start date set through an add model form and I want to keep that one. The second I want to be generated from a variable based on a previous choice. I pulled the variable out, so that's done. Now I need to find out how to calculate the end date based on the start date and this variable.
For example, I would want the end time on an hourlong class to be $start_time +1hour. This way I can set these for each event and the user doesn't have to think about how long this class is.
I tried using mktime and that doesn't work. So I wondered if CakePHP has a helper out there somewhere for modifying dates, or if CakeTime could do it, though that hasn't worked for me so far.