xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.3,1.4

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-serv12781/grab/uk_tvguide

Modified Files:
	tv_grab_uk_tvguide 
Log Message:
Replace DateTime::Format::DateParse with Date::Parse::str2time

Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tv_grab_uk_tvguide	20 Oct 2013 17:14:44 -0000	1.3
--- tv_grab_uk_tvguide	20 Oct 2013 18:37:47 -0000	1.4
***************
*** 25,29 ****
  use POSIX qw(strftime);
  use DateTime;
! use DateTime::Format::DateParse;
  use Encode;
  use URI::Escape;
--- 25,30 ----
  use POSIX qw(strftime);
  use DateTime;
! use Date::Parse;
! #v1.3: use DateTime::Format::DateParse;
  use Encode;
  use URI::Escape;
***************
*** 373,377 ****
  									my ($h, $i, $a, $h2, $i2, $a2, $dt) = $showtimes->as_text =~ /(\d*):(\d*)(am|pm)(?:-(\d*):(\d*)(am|pm))?\s*(?:\(.*\))?\s*(.*)$/;
  									if ($dt) {
! 										 $showtime = DateTime::Format::DateParse->parse_datetime( $dt, 'Europe/London' );
  									} else {
  										 $showtime = $theday->clone;
--- 374,379 ----
  									my ($h, $i, $a, $h2, $i2, $a2, $dt) = $showtimes->as_text =~ /(\d*):(\d*)(am|pm)(?:-(\d*):(\d*)(am|pm))?\s*(?:\(.*\))?\s*(.*)$/;
  									if ($dt) {
! 										 #v1.3: $showtime = DateTime::Format::DateParse->parse_datetime( $dt, 'Europe/London' );
! 										 $showtime = DateTime->from_epoch( epoch=>str2time( $dt, 'Europe/London' ) )->set_time_zone('Europe/London');
  									} else {
  										 $showtime = $theday->clone;


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.