Skip Menu |

This queue is for tickets about the DateTime-Format-Natural CPAN distribution.

Report information
The Basics
Id: 92189
Status: resolved
Priority: 0/
Queue: DateTime-Format-Natural

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

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



Subject: prefer the future even harder with prefer_future
It's 23:00 here. I asked for midnight, and it gave me the one 23 hours ago. I asked for "morning" and it gave me this past morning. I'd like a way for both of those to be in the future, as I'm always going to reject parses in the past. -- rjbs
I had a look at the patch you provided for this, and it seemed good, except that it didn't affect midnight. ~/Desktop/DateTime-Format-Natural$ perl -I lib scripts/dateparse -t America/New_York -p Show quoted text
dateparse> midnight
2015-08-12 00:00:00 Show quoted text
dateparse> now
2015-08-12 00:51:51 If it's 00:50 now, midnight should be in about 23 hours, preferring the future. -- rjbs
Addressed in v1.08_01. Thanks!