Comment 2 for bug 574116

Revision history for this message
Greg L (gletal) wrote : Re: Mythweather only updates once a day

I've worked out a fix. There appears to be an issue with the perl date:manip package when parsing "today". (I'm using date::manip version 6.05- the version included with Mythbuntu 10.04. I haven't tried a newer version because I didn't wish to risk breaking something else). The fix is to edit the envcan.pl script. First add a new variable that stores today's date and time and put it in the correct format:

    my $date=localtime(time);
    $date=UnixDate($date, " %O \n");

(I put this near the top after the other variable definitions)

Then replace wherever it says "today" with the new variable $date.

There might be a better way, but this is the first time I've edited a perl script, and this appears to work.

Thanks