LinHES Forums http://forums.linhes.org/ |
|
Original Air Date Prior to 1970? http://forums.linhes.org/viewtopic.php?f=17&t=12772 |
Page 1 of 1 |
Author: | opel70 [ Wed Nov 29, 2006 8:09 am ] |
Post subject: | Original Air Date Prior to 1970? |
Hello, Is there some limit on dates in the Myth interface? I recorded a few of the Charlie Brown specials that have original air dates in 1966 and in the recorded program listing they all show the original air date as 12-31-1969. I have checked the database and see that the date is correct there, it just doesn't display correctly. Any way to get this to display correctly? |
Author: | thornsoft [ Wed Nov 29, 2006 8:15 am ] |
Post subject: | |
I think it's a limitation of dates in Unix/Linux. All Unix machines count their dates from January 1st, 1970. The Myth date logic is probably based on this, or is built in a similar manner. |
Author: | opel70 [ Thu Dec 07, 2006 8:08 am ] |
Post subject: | |
Something about that seems wrong to me. I know that they count seconds from 1970, but this isn't calculating a date, it is just displaying something in date format. The date is correct in the MySQL database, so I'm sure it is not stored as the number of seconds from 1970, it is probably stored as an actual date. There must be some way for a Unix derived system to display a date prior to 1970. I mean, there are a lot of people alive today who were born prior to that starting date. How useful would a datebook be if you couldn't display all of those original birthdays? |
Author: | thornsoft [ Thu Dec 07, 2006 8:29 am ] |
Post subject: | |
opel70 wrote: Something about that seems wrong to me.
You think it's more likely that it's a coincidence? (both algorithms having problems with dates older than 1/1/1970) That seems very unlikely. Not having looked at the code, I am pretty confident in my assumption that it's related to the "seconds since 1970" problem. |
Author: | opel70 [ Thu Dec 07, 2006 5:06 pm ] |
Post subject: | |
Oh, I'm not doubting that they are related. It still seems as though there is something wrong with the implementation. For this to be a problem, they would need to be converting the date from the text format that it is in the database, convert it to the Unix time base, and then convert it back to text to display. Though, as I wrote this I wouldn't doubt that this is what is done since Myth allows you to customize the date display for your particular region. I guess the only, or at least the easiest, way to do this is to convert back to a base time. Oh well, it is not a HUGE deal, just one of those nagging UI issues that someone pointed out while I was trying to show off the system. |
Author: | opel70 [ Thu Mar 01, 2007 8:20 am ] |
Post subject: | |
I posted this question to the mythtv-dev mailing list and fairly quickly got this response: Quote: You might want to try out the patch in http://cvs.mythtv.org/trac/ticket/2864
This patch is only a few weeks old and would change the protocol version, so it won't be fully integrated until the next version bump, but it has been committed to the code. I haven't yet tried it, but it sounds like it will do the trick. Just though I would post back here in case anyone else came around later looking for a solution. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |