fix to work without moment.js