Opened 11 years ago

Closed 11 years ago

Last modified 11 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


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 (

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:

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

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

Attachment: weather.patch added

comment:1 Changed 11 years ago by beirdo

Owner: changed from Isaac Richards to beirdo
Status: newassigned

comment:2 Changed 11 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 11 years ago by stuartm

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