xmltv/grab/ch_search tv_grab_ch_search.in, 1.20, 1.21

Patric Mueller <[email protected]> Wed, 13 Apr 2016 10:09:38 +0000
Newsgroups gmane.comp.tv.xmltv.cvs
Message-ID <[email protected]>
Update of /cvsroot/xmltv/xmltv/grab/ch_search
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15096

Modified Files:
	tv_grab_ch_search.in 
Log Message:
_ch_search: set minutes and seconds for filter date to 0 and use correct timezone


Index: tv_grab_ch_search.in
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/ch_search/tv_grab_ch_search.in,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** tv_grab_ch_search.in	4 Feb 2016 11:37:12 -0000	1.20
--- tv_grab_ch_search.in	13 Apr 2016 10:09:36 -0000	1.21
***************
*** 193,199 ****
  
  ## calculate global start/stop times ...
! my $grab_start = DateTime->now()->add( days => $opt_offset );
! my $grab_stop = DateTime->now()->add ( days => $opt_offset + $opt_days );
! 
  
  my $mode = XMLTV::Mode::mode('grab', # default value
--- 193,198 ----
  
  ## calculate global start/stop times ...
! my $grab_start = DateTime->now(time_zone => 'Europe/Zurich')->add( days => $opt_offset );
! my $grab_stop = DateTime->now(time_zone => 'Europe/Zurich')->add ( days => $opt_offset + $opt_days );
  
  my $mode = XMLTV::Mode::mode('grab', # default value
***************
*** 539,543 ****
          $tb->eof;
  
!         parse_page($tb, $grabDate->clone()->set_hour(4*$count));
  
          $tb->delete();
--- 538,542 ----
          $tb->eof;
  
!         parse_page($tb, $grabDate->clone()->truncate("to" => "hour")->set_hour(4*$count));
  
          $tb->delete();


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z