Closed jonathantullett closed 6 years ago
Hmm, thanks for reporting, hand't thought of this. This is pretty easy to fix on the PHP side, but it wouldn't be in-sync with the rest of the system. Best would be to create a custom API that transforms the date into something normal, but then again, other pages will fail.
I'll fix the PHP code for now, setting a reminder, and will train this site for better date parsing on Diffbot's end in the meanwhile.
Date should return accurately now from that domain. Code fix soon.
When using the getDate() method from an Article, if the field has an unparsable date and Carbon is being used, it throws an exception:
I have patched our code to catch the exception but feel this should be handled more gracefully within Article.php
An example URL where this came from is http://www.clashmusic.com/features/sorcerer-the-perpetual-transition-of-jordan-rakei where you can see the byline is
ROBIN MURRAY FEATURES 20 · 10 · 2017
(perhaps an opportunity to improve the article processing algo too?)Thank you!