Opened 5 years ago
Closed 2 years ago
#13340 closed Bug Report - General (Trac EOL)
Locale dependent dates in HTTP response
Reported by: | pmhahn | Owned by: | cpinkham |
---|---|---|---|
Priority: | minor | Milestone: | needs_triage |
Component: | MythTV - HTTP Streaming | Version: | v29-fixes |
Severity: | medium | Keywords: | locale, http |
Cc: | Ticket locked: | no |
Description
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Trac reports an error when trying to attach the patch as a file, so here it is inline: