clickrain / EE_Twitter

EE Add-on that uses oAuth to display Twitter Feed
Other
48 stars 18 forks source link

Relative_date diff() error #4

Closed 620studio closed 11 years ago

620studio commented 11 years ago

Moving this over from the TGL_Twitter issues:

Getting a error using relative_date tag: Fatal error: Call to undefined method DateTime::diff() ... on line 626

The iso_date and created_date tags seem to be working fine.

bryanburgers commented 11 years ago

The {relative_date} tag requires DateTime::diff(), which was added in PHP 5.3. Since PHP 5.3 was released on 2009-06-30 (nearly 4 years ago), this is not a critical issue. If you're able to calculate the relative date without DateTime::diff(), please submit a pull request and I'll merge the change.

bryanburgers commented 11 years ago

Lots of people seem to have this issue. I should put in something that at the very least doesn't throw an error.