Stop using deprecated moment constructor to create a date (see https://github.com/moment/moment/issues/1407)