I’m getting some strange results all of a sudden from this plugin. It seemed to be working great until tonight.
I took out all the variables I could and manually entered in timestamps to make sure other tags or EE data wasn’t interfering with it. Here’s the tag I’m using:
{exp:jb_friendly entry_date="1306464900" relative_date="1306469739"}{friendly} {direction} - {full_date}{/exp:jb_friendly}
Here are some example timestamps I’m comparing:
entry_date relative_date
1306464900 1306470936
1306460663 1306470936
1306457773 1306470936
On two different server (one remote, one local) I get two different results:
4022 years to go - May 26th, 4900
277 years ago - May 26th, 0663
6937 years to go - May 26th, 7773
and
0 seconds ago - May 26th, 2011
0 seconds ago - May 26th, 2011
0 seconds ago - May 26th, 2011
Also, testing against older dates is still working. So these timestamps give the expected output:
entry_date relative_date
1305607071 1306470936
outputs this:
10 days ago - May 17th, 2011
|