Python remove @ attribute xml to json converter


url = "https://data.bmkg.go.id/datamkg/MEWS/DigitalForecast/DigitalForecast-KalimantanTimur.xml" 
response = requests.get(url) 
data = xmltodict.parse(response.content, attr_prefix='', cdata_key='text') 

datajson = (data['data']['forecast']['area'][1]['parameter'][6]['timerange'])

return print(json.dumps())

Change timezone in axios request


import moment from moment-timezone

getTimezone() {

axios.get('http:your url').then (response => {

var data = response.data.sensors

var date = [];
              for(var j = 0; j< datalength; j++){    
                  
                    date.push( moment(String(data[j].date)).format('DD/MM/YYYY HH:mm') ); 
  
              }


})

}

console.log(date)