Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-34

Imported data's timezone information is wrong

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • import tools
    • None

      The first listen on http://listenbrainz.org/user/Mineo is currently

      Martin O'Donnell & Michael Salvatori We Remember about 2 hours ago

      but I just listened to this track to test LB-9. 2 hours is also the time difference between my local time zone (CEST) and UTC.

      The HTML on http://www.last.fm/de/user/DasMineo/library is

      <td class="chartlist-timestamp">
      <span title="Donnerstag, 17. Sep 2015, 9:07">vor 9 Minuten</span>
      </td>

      ("vor 9 Minuten" = "9 minutes ago").

      The JSON data is

      {
      "listened_at": 1442473620,
      "track_metadata": {
      "additional_info":

      { "artist_msid": "f18288f5-b17b-40c0-923d-2f29f559fd4d", "release_msid": null }

      ,
      "artist_name": "Martin O'Donnell & Michael Salvatori",
      "track_name": "We Remember"
      }
      }

          [LB-34] Imported data's timezone information is wrong

          Alastair Porter added a comment - Thanks for reporting https://github.com/metabrainz/listenbrainz-server/commit/4e79181b51679b46adb2b25a127b4fe5562376b7

          Some more information, requested on IRC:

          This is for "Nicholas Hooper Of Love & War about 2 hours ago", the currently second track on my LB listen list:

          <td class="chartlist-timestamp">
          <span title="Thursday 17 Sep 2015, 10:27am">4 minutes ago</span>
          </td>

          ↪ date
          Do 17. Sep 12:33:28 CEST 2015

          MB username is Mineo

          Wieland Hoffmann added a comment - Some more information, requested on IRC: This is for "Nicholas Hooper Of Love & War about 2 hours ago", the currently second track on my LB listen list: <td class="chartlist-timestamp"> <span title="Thursday 17 Sep 2015, 10:27am">4 minutes ago</span> </td> ↪ date Do 17. Sep 12:33:28 CEST 2015 MB username is Mineo

          Yes, we've seen this before. It seems to be related to timezones, and our "time ago" plugin not dealing with them correctly

          Alastair Porter added a comment - Yes, we've seen this before. It seems to be related to timezones, and our "time ago" plugin not dealing with them correctly

            Unassigned Unassigned
            mineo Wieland Hoffmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package