Closed AdityaSharma1407 closed 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
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/
useEffect
useEffect (() => { let getZones = moment.tz.zonesForCountry('US') console.log(getZones) },[])