Why is my density altitude calculation different from ForeFlight's?

In order to properly calculate density altitude, one must take into account the pressure, temperature, and dewpoint temperature. The ForeFlight app does this.