View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Nov 29, 2006 8:09 am 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
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?

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 8:15 am 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 8:08 am 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
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?

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 8:29 am 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 5:06 pm 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
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.

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 8:20 am 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
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.

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu