Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#4583 closed defect (fixed)

MythWeb recreates pixmaps every time after switching LANG variable

Reported by: geierb@… Owned by: xris
Priority: minor Milestone: unknown
Component: mythweb Version: 0.20.2
Severity: medium Keywords: MythWeb, Pixmaps
Cc: Isaac Richards Ticket locked: no

Description

After switching MythTV user's LANG variable from e.g. "en_US.UTF-8" to "de_DE.UTF8", MythWeb recreates the preview pixmaps every time someone visis MythWeb's recordings page. After switching back to the previous LANG, everything is fine again.

Attachments (1)

4583-dbg-v1.patch (5.0 KB) - added by danielk 16 years ago.
completely untested code to return time_t rather than a locale formated time from QUERY_PIXMAP_LASTMODIFIED

Download all attachments as: .zip

Change History (4)

comment:1 Changed 16 years ago by xris

Cc: Isaac Richards added

ok, preliminary tests seem to show that QUERY_PIXMAP_LASTMODIFIED returns a human readable timestamp (e.g. "Sa Feb 16 15:09:33 2008"), the format of which is based on the LANG setting of the backend. Mythweb them parses that with strtotime(). If the LANG values are different, strtotime() won't know how to parse the string properly, and will come back with an odd unix timestamp value, thus triggering the pixmap to be re-requested from the backend.

Changed 16 years ago by danielk

Attachment: 4583-dbg-v1.patch added

completely untested code to return time_t rather than a locale formated time from QUERY_PIXMAP_LASTMODIFIED

comment:2 Changed 16 years ago by xris

Resolution: fixed
Status: newclosed

(In [16093]) close #4583: merge [16090], [16091] and [16092] from trunk to work around LANG issues in QUERY_PIXMAP_LASTMODIFIED

comment:3 Changed 16 years ago by geierb@…

Thank you!

Note: See TracTickets for help on using tickets.