Opened 18 years ago

Closed 18 years ago

#2003 closed defect (fixed)

date/time typo in ProgramInfo::ToMap() ?

Reported by: mythtv@… Owned by: danielk
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi,

is it really desired behaviour, that in libmythtv/ProgramInfo::ToMap?() the starttime and recstarttime are initialized with the year?

source:/trunk/mythtv/libs/libmythtv/programinfo.cpp

451        if (startts.date().year() == 1895)
452        {
453           progMap["startdate"] = "?";
454           progMap["recstartdate"] = "?";
455        }
456        else
457        {
                        vvv
458            progMap["starttime"] = startts.toString("yyyy");
459            progMap["recstarttime"] = startts.toString("yyyy");
                        ^^^
460        }

Shouldn't those be startdate and recstartdate, too?

take care, have fun

/christian

Change History (2)

comment:1 Changed 18 years ago by danielk

Milestone: 0.20
Owner: changed from Isaac Richards to danielk

comment:2 Changed 18 years ago by danielk

Resolution: fixed
Status: newclosed

(In [10476]) Fixes #2003. Type caused date to never be reported for videos, even when known.

Note: See TracTickets for help on using tickets.