Re: [mythtv-users] Incorrect listings after DST clock change (UK)
Neil Bird <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.general |
|---|---|
| Message-ID | <[email protected]> |
Around about 01/04/11 09:58, Neil Bird typed ...
> I'll try it in the case of this grabber, though; it might do the trick.
You can't just re-call Date_Init, you have to play silly wotsits, but
it's do-able.
That said, I did find another explicit call of 'Date_Init("TZ=UTC")'
within tv_grab_uk_rt itself, which seems to go back to the year dot in
various guises, so I can't tell why it's there.
The following *in lieu* of the Date_Init in the grabber [also] fixes the
issue *for me*:
--- /usr/bin/tv_grab_uk_rt 2010-12-18 06:42:33.000000000 +0000
+++ /tmp/tv_grab_uk_rt 2011-04-01 10:44:17.000000000 +0100
@@ -145,8 +145,13 @@
# At this point, grabbing routines take over from ParseOptions #
################################################################
-# UTC required for XMLTV::DST
-Date_Init('TZ=UTC');
+# XMLTV.pm forces TZ to UTC, which can break older installs using
Date::Manip::DM5.
+# Re-initialise to use local TZ for our purposes.
+if (DateManipVersion(1) =~ /^5/o and defined(%Date::Manip::DM5::Cnf))
+{
+ delete( $Date::Manip::DM5::Cnf{'TZ'} );
+ $Date::Manip::DM5::Cnf{'TZ'} = Date::Manip::Date_TimeZone();
+}
die "Error: You cannot specify --quiet with --debug, exiting"
if ($opt->{quiet} && $opt->{debug});
Again, this only appears to be an issue for DM5 users, but I couldn't say
if this would break anyone else or not. I *still* don't see anyone else
with a problem.
--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf