Opened 14 years ago

Closed 14 years ago

#535 closed enhancement (fixed)

Non-existing date format oldDateFormat is used

Reported by: Oscar Carlsson Owned by: bjm
Priority: minor Milestone: 0.19
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

In programinfo.cpp oldDateFormat is used at a couple of places.

QString oldDateFormat = gContext->GetSetting("OldDateFormat", "M/d/yyyy");

This doesn't exist in the database or in the settings, thus always using "M/d/yyyy" which is a date format not used Sweden (or the rest of EU i think).

When grepping the source I also found references to oldDateFormat in tv_play.cpp and mainserver.cpp.

Is there any reason for using this non-existing format? In programinfo.cpp it's a simple matter of using dateFormat instead, which is used on other places in that file.

Change History (2)

comment:1 Changed 14 years ago by Oscar Carlsson

Owner: changed from Isaac Richards to bjm

comment:2 Changed 14 years ago by bjm

Resolution: fixed
Status: newclosed

(In [7624]) Removed all references to "oldDateFormat". This was used in places where the year was needed such as originalairdate but not all "DateFormat?" choices include the year. Therefore, the user's chosen "DateFormat?" is used in these places but if the year isn't present in the format, " yyyy" is appended. Also, "M/d/yyyy" has been added as a "DateFormat?" choice.

Closes #535

Note: See TracTickets for help on using tickets.