Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#8466 closed defect (fixed)

version 6.x of Date::Manip perl module breaks some compatibility with 5.x

Reported by: Marc Randolph <mrand@…> Owned by: beirdo
Priority: minor Milestone: 0.24
Component: Plugin - MythWeather Version: 0.23-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Mythbuntu (and Ubuntu in general) 10.04 picked up and distributed the 6.x version of Date::Manip. A user has since noticed that MythWeather? was only updating once a day. I've traced this back to the author of the version 6 of the Date::Manip perl module deciding to break compatibility with previous versions: "today", "tomorrow", and "yesterday" now behave differently (http://search.cpan.org/~sbeck/Date-Manip-6.11/lib/Date/Manip/Changes5to6.pod#DATE_PARSING_AND_OPERATIONS).

The attached patch applies to both 0.23 and trunk, and replaces "today" with "now". Using "now" is backwards compatible with 5.x, so backporting should not affect existing installs.

There is one occurrence of tomorrow (used as "8am tomorrow"), but it seems to work properly in both 5.x and 6.x

Also of possible interest: http://search.cpan.org/~sbeck/Date-Manip/lib/Date/Manip/Problems.pod

Attachments (1)

weather.patch (3.7 KB) - added by Marc Randolph <mrand@…> 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Marc Randolph <mrand@…>

Attachment: weather.patch added

comment:1 Changed 14 years ago by beirdo

Owner: changed from Isaac Richards to beirdo
Status: newassigned

comment:2 Changed 14 years ago by beirdo

Resolution: fixed
Status: assignedclosed

(In [25140]) Changed use of "today" in uses of Date::Manip to use "now" for compatibility reasons. Applied patch supplied by mrand@….

Closes #8466

comment:3 Changed 14 years ago by stuartm

Milestone: unknown0.24
Note: See TracTickets for help on using tickets.