[mythtv] Mythweb from cvs
Rob Hillis
rob at hillis.dyndns.org
Sun Nov 28 06:09:23 UTC 2004
Torbjörn Jansson wrote:
>There seems to be something wierd with the mythweb from cvs.
>There is lots of generic_date and generic_time texts instead of the actual
>dates and times.
>
For some reason, the defaults have been changed in includes/init.php.
All I did was to change them. Look at the end of init.php and try the
following replacement lines.
// Load/set default session data
if (!$_SESSION['date_statusbar'])
$_SESSION['date_statusbar'] = '%a %d, %b %Y, %I:%M %p';
if (!$_SESSION['date_scheduled'])
$_SESSION['date_scheduled'] = '%a %d, %b %Y (%I:%M %p)';
if (!$_SESSION['date_scheduled_popup'])
$_SESSION['date_scheduled_popup'] = '%a %d, %b %Y';
if (!$_SESSION['date_recorded'])
$_SESSION['date_recorded'] = '%a %d, %b %Y<br>(%I:%M %p)';
if (!$_SESSION['date_search'])
$_SESSION['date_search'] = '%a %d, %b %Y, %I:%M %p';
if (!$_SESSION['date_listing_key'])
$_SESSION['date_listing_key'] = '%a %d, %b %Y, %I:%M %p';
if (!$_SESSION['date_listing_jump'])
$_SESSION['date_listing_jump'] = '%a %d, %b %Y';
if (!$_SESSION['date_channel_jump'])
$_SESSION['date_channel_jump'] = '%a %d, %b %Y';
if (!$_SESSION['time_format'])
$_SESSION['time_format'] = '%I:%M %p';
Should look much better. Also much more widely acceptable than using a
dd/mm/yyyy or mm/dd/yyyy when you get people complaining that the dates
are backwards. (I'm not going to get into an argument over which is
correct, though it /does/ seem more logical to use the dd/mm/yyyy format...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20041128/ee9004a3/attachment.html
More information about the mythtv-dev
mailing list