Skip Menu |

This queue is for tickets about the Time-Verbal CPAN distribution.

Report information
The Basics
Id: 121553
Status: resolved
Priority: 0/
Queue: Time-Verbal

People
Owner: GUGOD [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.0.1
Fixed in: (no value)



Subject: $delta>86400 should be $delta>=86400
In https://metacpan.org/source/GUGOD/Time-Verbal-1.0.1/lib/Time/Verbal.pm#L39 the first expression should be $delta>=86400 (or I think you can omit this one completely). Otherwise for a distance of exactly one day the module picks wrongly the plural form: say Time::Verbal->new->distance($now, $now + 86400); -> "1 days", but it should be "one day".
Thanks! This is fixed like the way you suggested. (Also released a new version just for this) https://metacpan.org/release/GUGOD/Time-Verbal-1.1.0