PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Calculating Time Start and Time End

  1. I've been trying to get a calculation to work by converting the Time Field and finding the difference between the two. I've looked at the following topic: http://www.gravityhelp.com/forums/topic/calculate-time-difference

    But this only works with PHP 5.3. I've come up with a hook that should work with PHP 5.2 but for some reason the Hidden Field is coming up with 0.

    Here is my form: http://www.emsinc.us/beta/temp-page/
    Here is the Hook: http://pastebin.com/Mzb4fM9p

    Any ideas why this is not working? Thanks

    Posted 11 years ago on Thursday February 21, 2013 | Permalink
  2. I would echo or log each variable after you set it to see what it contains, so you can figure out at which point this is falling apart.

    Posted 11 years ago on Saturday February 23, 2013 | Permalink