Fixes incorrectly passing 'date' instead of 'day' to the moment library