avoid error using the angular-ui date directive
api server code moved to resource.py