Make forward compatible with Moment>=2.8.0

Maintains backcompat with Moment<2.8.0