Ticket #9921: no-date-manip-tz.patch

File no-date-manip-tz.patch, 777 bytes (added by ktdreyer <ktdreyer@…>, 13 years ago)
  • mythplugins-0.24.1/mythweather/mythweather/scripts/us_nws/nws-alert.pl

    Everything here works with RHEL6's older version of Date::Manip, except for this one script (in fact, one line in this one script.)
    old new  
    1212use XML::Parser;
    1313use base qw(XML::SAX::Base);
    1414use Date::Manip;
    15 use Date::Manip::TZ;
    1615use Data::Dumper;
    1716use Getopt::Std;
    1817use LWP::Simple;
     
    8887    my $info;
    8988
    9089    $date = ParseDate($date);
    91     my $tz = new Date::Manip::TZ;
    92     $date = Date_ConvTZ($date, $tz->curr_zone(), "UTC");
     90    $date = Date_ConvTZ($date, '', "UTC");
    9391    $date = UnixDate($date, "%O");
    9492
    9593    my @dates;