Opened 12 years ago

Closed 11 years ago

#4683 closed task (fixed)

Force MythWeb to use same timezone as the backend

Reported by: stuartm Owned by: Rob Smith
Priority: minor Milestone: 0.22
Component: mythweb Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

MythWeb is requesting program information and preview images from the backend with the incorrect time if the recording was made during DST/BST.

Change History (5)

comment:1 Changed 12 years ago by stuartm

mysql> SELECT starttime,progstart FROM recorded WHERE title='Thirteen Days'; +---------------------+---------------------+ | starttime | progstart | +---------------------+---------------------+ | 2007-10-06 21:58:00 | 2007-10-06 22:00:00 | +---------------------+---------------------+ 1 row in set (0.00 sec)

Mythweb Shows: Sat Oct 6, 2007 (21:00 )

http://miffteevee.co.uk/imagebin/mythweb_dst.jpg

comment:2 Changed 12 years ago by stuartm

Milestone: 0.210.22
Summary: MythWeb doesn't handle recordings made during DSTForce MythWeb to use same timezone as the backend
Type: defecttask

Turns out to be a php bug, it wasn't using the system timezone. A few good ideas have come out of the discussion though, such as adding a QUERY_TIMEZONE command to the protocol and forcing the correct mythweb timezone using date_timezone_set(). So I'm pushing this to 0.22 as a task instead of a defect.

comment:3 Changed 11 years ago by Rob Smith

Owner: changed from xris to Rob Smith
Status: newaccepted

comment:4 Changed 11 years ago by Rob Smith

This depends on #5319

comment:5 Changed 11 years ago by Rob Smith

Resolution: fixed
Status: acceptedclosed

(In [19004]) Fixes #4683, this sets the default timezone mythweb uses to be the same one the master backend is using

Note: See TracTickets for help on using tickets.