Compatibility with moment 2.8.x