Removed Flask-Moment integration and replaced with needlessly complex dateutil solution.