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: | Owned by: | xris | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythweb | Version: | 0.20.2 |
Severity: | medium | Keywords: | MythWeb, Pixmaps |
Cc: | Isaac Richards | Ticket locked: | no |
Attachments (1)
Change History (4)
comment:1 Changed 16 years ago by
Cc: | Isaac Richards added |
---|
Changed 16 years ago by
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
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.