Skip to content

Tags: jimmiw/php-time-ago

Tags

3.2.4

Toggle 3.2.4's commit message
Handle 61 days ago as 2 months

We have a fun problem with the summer months, where
July and August has 31 days each. This resulted in
the script returning "1 months ago" instead of 2.
The DateTime diff() was not incorrect though, as
it was only 1 month and 31 days ago, but for our
purpose, i have changed the script to round up from
1 to 2, when we are about 59days ago.

Handles #95

3.2.3

Toggle 3.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update Changelog.md

3.2.2

Toggle 3.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.2.2 changes

3.2.1

Toggle 3.2.1's commit message
Updated changelog for 3.2.1

3.2.0

Toggle 3.2.0's commit message
Merge remote-tracking branch 'origin/master'

3.1.1

Toggle 3.1.1's commit message
Zh_TW does not support PSR-4

Fixed the filename on this class.
Updated php requirement to 7.0.0.
Updated php doc statements.

Fixes: #88

3.1.0

Toggle 3.1.0's commit message
Merge branch 'master' of github.com:jimmiw/php-time-ago

3.0.6

Toggle 3.0.6's commit message
Handle timediff from 1h30m as 2 hours.

There was a bug with 1h and 30mins given 1 hours back. This should be 2 hours.
I added a simple check to see if the returning hour was 1, if so, i return 2.
This will now give the indented number of hours.

Changed the test to check, if "2 hours ago" is returned with 90mins and 110mins
instead of just checking for "hours ago".

Issue #79

3.0.5

Toggle 3.0.5's commit message
Add changelog for 3.0.5

3.0.4

Toggle 3.0.4's commit message
Bumped to 3.0.4