@raisedbywolves there should be a direct function in the app at this point - and afaik, there is.
Account => settings => account settings => export data, you get a link to your email to download the .zip file.
I found an alternative easier solution; to synch the data with training peaks.
They give the option to configure my own zones and it calculates the time spent on each zone automatically