Fix calendar to work with moment.