Fixed date issue

Was getting the following error: `deliver-before-timestamp has already expired`
Added "moment" as a dependency to make it easier to work with dates.