Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative_date diff() error #4

Closed
620studio opened this issue Mar 9, 2013 · 2 comments
Closed

Relative_date diff() error #4

620studio opened this issue Mar 9, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@620studio
Copy link

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 added a commit that referenced this issue Mar 9, 2013
The tag `{relative_date}` requires a function in PHP 5.3. This is
referenced in issue #4. Note: this commit doesn't fix change the
dependency on PHP 5.3, it simpy documents that it exists.
@bryanburgers
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants