Switched to using moment instead of javascript dates throughout the back end.