Assembla home | Assembla project page
 

Ticket #128 (new Bug Report)

Opened 7 months ago

Last modified 2 months ago

Last.FM scrobbling date+time is wrong

Reported by: swiss Assigned to:
Priority: High Milestone: 1.21
Component: Last.FM Integration Version:
Keywords: Cc:

Description

Last.FM needs the time send to it in GMT, but the user may be another location. We need to determine the time difference (automatically if possible, otherwise it will have to be set via the config pages)

Change History

05/09/08 23:42:13 changed by swiss

(In [976]) The GMT offset was not being stored within the session because session files can get locked when multiple pages are accessing it (when music is playing there are two concurrent pages being requested - the "Now Playing" screen and the streaming page). It is also worth noting that the session variables only gets written when the page ends (which is a long time for the streaming page)

To get around this, the GMT offset is saved to the database instead of the session.

I've also added a "modified" column to both the sys and user preferences tables which gets updated with the time that the preference was last updated. This is then used for the GMT offset to ensure that we only use it if it was calculated less than 24 horus ago so that changes in timezone (eg: in/out of DST) are picked up.

Refs #128.

06/23/08 22:10:11 changed by Pernod

  • milestone changed from Undecided to 1.21.