I’m trying to load the following URL:
as a JSON quote feed. I’ve set the following:
but as you can see I’m getting
Text ‘1591185600’ could not be parsed at index 0
From the instructions in the UI given this is an epoch date, I shouldn’t need to specify a date format? I had a look at https://github.com/portfolio-performance/portfolio/blob/master/name.abuchen.portfolio/src/name/abuchen/portfolio/online/impl/GenericJSONQuoteFeed.java and it appears to be because the field is defined as a string, rather than a number.
I tried using the ‘dateF’ field in the JSON - which comes in a somewhat crazy format of “Wed Jun 03 10:00:00 PM GMT 2020”. Unfortunately the closest Java date format string I can find is: “EEE MMM dd hh:mm:ss a zzz yyyy” but the DateTimeFormatter chokes on the AM/PM field with hh:mm:ss or HH:mm:ss. Any ideas?
Many thanks