[mythtv-commits] Ticket #13340: Locale dependent dates in HTTP response

MythTV noreply at mythtv.org
Sun Oct 28 20:32:25 UTC 2018


#13340: Locale dependent dates in HTTP response
-----------------------------------------+--------------------------
     Reporter:  pmhahn                   |      Owner:  cpinkham
         Type:  Bug Report - General     |     Status:  new
     Priority:  minor                    |  Milestone:  needs_triage
    Component:  MythTV - HTTP Streaming  |    Version:  v29-fixes
     Severity:  medium                   |   Keywords:  locale, http
Ticket locked:  0                        |
-----------------------------------------+--------------------------
 I downloaded a recording and `wget` complained about a wrong date format:
 {{{
 $ wget --content-disposition
 http://barrel.fritz.box:6544/Content/GetRecording?RecordedId=3756
 ...
 »Last-modified«-Kopfzeile ungültig -- Zeitstempel übergangen.
 }}}

 Using `curl` the dates indeed use my German locale:
 {{{
 $ curl -I
 http://barrel.fritz.box:6544/Content/GetRecording?RecordedId=3756
 ...
 Date: Sa., 27 Okt. 2018 08:33:56 GMT
 Last-Modified: Mo., 15 Okt. 2018 16:46:24 GMT
 Server: MythTV/29.1-9-gd9d702526b-dirty Linux/4.9.0-8-amd64 UPnP/1.0
 }}}

 mythtv/mythtv/libs/libmythupnp/httprequest.cpp uses MythDate::kRFC822,
 which uses my current locale instead of always using en_US.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13340>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list