Re: [mythtv-users] mythfilldatabase: Ignoring unknown timestamp format: 20161231235960

Kevin Groeneveld <[email protected]> Sat, 17 Dec 2016 19:05:38 -0500
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <CABF+-6X+4tSgPTFmHoR_TL=QiS5tHHkEXsnCpkwKWR2MFECk1Q@mail.gmail.com>
On Sat, Dec 17, 2016 at 3:58 PM, Ian Campbell <[email protected]> wrote:

> On Sat, 2016-12-17 at 15:28 -0500, Kevin Groeneveld wrote:
> > I do wonder if maybe it is already fixed.  I have made significant
> > changes to the time handling in the CVS code that is not in an
> > official release yet.  These changes make the CVS version
> > significantly faster than the release version.  Maybe these changes
> > also fixed the leap second (or maybe it is okay in the release
> > version and I broke it in the CVS version).
>
> Sorry, I should have said: I'm running 0.5.68-1 from the Debian
> packages.
>

I just tried running 0.5.68 (although not the Debian package) and the
latest CVS code and in both cases I could not seem to trigger any output
which includes a time that ends in "60" or "59".  Maybe there is something
different about the time setup on my system.

I still think the latest CVS version may fix the problem you are seeing.
It converts all times to unix time internally (which does not include leap
seconds) and uses the gmtime function to convert the times back to strings
for the final output.  It seems it should be impossible to get a time
ending in "60".  The 0.5.68 code stored and manipulated times using perl
DateTime objects.  DateTime does support leap seconds so I could see it
outputting a time ending in "60".

Can you try running the latest CVS version?  You can download just the
tv_grab_sd_json grabber from:
http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/grab/sd_json/tv_grab_sd_json.
You should be able to run that file from pretty much any location on your
system if you have a recent xmltv package installed.


Kevin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
xmltv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltv-devel