works with moment >=2.3.0