moment / moment-timezone

Timezone support for moment.js
momentjs.com/timezone
MIT License
3.83k stars 838 forks source link

Getting spilt issue while using moment and moment-timezones #1104

Closed AdityaSharma1407 closed 6 months ago

AdityaSharma1407 commented 6 months ago

useEffect (() => { let getZones = moment.tz.zonesForCountry('US') console.log(getZones) },[])

Just trying to get the US zones   in react project 

moment  -v : 2.30.1
moment-timezone : 0.5.45
gilmoreorless commented 6 months ago

You haven't given any details of what the problem is. Your example code (excluding the useEffect call) works just fine in the console on https://momentjs.com/timezone/