xmltv/grab/uk_rt tv_grab_uk_rt,1.30,1.31
Nick Morrott <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/grab/uk_rt
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28081/grab/uk_rt
Modified Files:
tv_grab_uk_rt
Log Message:
Ensure correct timezone for a programme's stop time when the timezone has been explicitly set via hint
Index: tv_grab_uk_rt
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_rt/tv_grab_uk_rt,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** tv_grab_uk_rt 1 Dec 2013 01:19:38 -0000 1.30
--- tv_grab_uk_rt 1 Dec 2013 02:45:12 -0000 1.31
***************
*** 2771,2774 ****
--- 2771,2777 ----
my $dur = DateTime::Duration->new( minutes => $prog->{'_duration_mins'} );
my $stop_dt = $start_dt + $dur;
+ # Ensure correct timezone where TZ was explicitly flagged
+ $stop_dt = $stop_dt->set_time_zone('Europe/London') if (defined $prog->{'_explicit_tz'});
+
$prog->{stop} = "" . $stop_dt->ymd('') . $stop_dt->hms('') . ' ' . DateTime::TimeZone->offset_as_string($stop_dt->offset);
t(" " . $prog->{stop} . " - Stop time");
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk