xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.11,1.12
Geoff <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/grab/uk_tvguide
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv32549
Modified Files:
tv_grab_uk_tvguide
Log Message:
workaround for bug in Date::Time::str2time()
Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** tv_grab_uk_tvguide 23 Jan 2014 13:12:03 -0000 1.11
--- tv_grab_uk_tvguide 31 Jan 2014 11:01:35 -0000 1.12
***************
*** 389,392 ****
--- 389,397 ----
if ($dt) {
#v1.3: $showtime = DateTime::Format::DateParse->parse_datetime( $dt, 'Europe/London' );
+
+ # workaround for bug in Date::Time::str2time() which generates wrong dates for future months when no year is given
+ # https://rt.cpan.org/Public/Bug/Display.html?id=92611
+ $dt .= ' '.( (localtime(time))[5]+1900 ) if $dt !~ /(19|20)\d\d/;
+
$showtime = DateTime->from_epoch( epoch=>str2time( $dt, 'Europe/London' ) )->set_time_zone('Europe/London');
} else {
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk