Opened 19 years ago
Closed 19 years ago
Last modified 19 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 by , 19 years ago
| Cc: | added |
|---|
by , 19 years ago
| 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 by , 19 years ago
| 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.