{"action":"opened","issue":{"url":"https://api.github.com/repos/minj/foxtrick/issues/1353","labels_url":"https://api.github.com/repos/minj/foxtrick/issues/1353/labels{/name}","comments_url":"https://api.github.com/repos/minj/foxtrick/issues/1353/comments","events_url":"https://api.github.com/repos/minj/foxtrick/issues/1353/events","html_url":"https://github.com/minj/foxtrick/issues/1353","id":117854385,"number":1353,"title":"PlayerStatsTrainingWeek week grouping fails in some user time zones","user":{"login":"minj","id":1035523,"avatar_url":"https://avatars.githubusercontent.com/u/1035523?v=3","gravatar_id":"","url":"https://api.github.com/users/minj","html_url":"https://github.com/minj","followers_url":"https://api.github.com/users/minj/followers","following_url":"https://api.github.com/users/minj/following{/other_user}","gists_url":"https://api.github.com/users/minj/gists{/gist_id}","starred_url":"https://api.github.com/users/minj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minj/subscriptions","organizations_url":"https://api.github.com/users/minj/orgs","repos_url":"https://api.github.com/users/minj/repos","events_url":"https://api.github.com/users/minj/events{/privacy}","received_events_url":"https://api.github.com/users/minj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/minj/foxtrick/labels/blocked@HT","name":"blocked@HT","color":"999999"},{"url":"https://api.github.com/repos/minj/foxtrick/labels/bug","name":"bug","color":"ff00ff"},{"url":"https://api.github.com/repos/minj/foxtrick/labels/Misc","name":"Misc","color":"ededed"},{"url":"https://api.github.com/repos/minj/foxtrick/labels/Priority-Low","name":"Priority-Low","color":"ffffff"},{"url":"https://api.github.com/repos/minj/foxtrick/labels/started","name":"started","color":"006600"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/minj/foxtrick/milestones/8","html_url":"https://github.com/minj/foxtrick/milestones/0.17.0","labels_url":"https://api.github.com/repos/minj/foxtrick/milestones/8/labels","id":1414204,"number":8,"title":"0.17.0","description":"","creator":{"login":"minj","id":1035523,"avatar_url":"https://avatars.githubusercontent.com/u/1035523?v=3","gravatar_id":"","url":"https://api.github.com/users/minj","html_url":"https://github.com/minj","followers_url":"https://api.github.com/users/minj/followers","following_url":"https://api.github.com/users/minj/following{/other_user}","gists_url":"https://api.github.com/users/minj/gists{/gist_id}","starred_url":"https://api.github.com/users/minj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minj/subscriptions","organizations_url":"https://api.github.com/users/minj/orgs","repos_url":"https://api.github.com/users/minj/repos","events_url":"https://api.github.com/users/minj/events{/privacy}","received_events_url":"https://api.github.com/users/minj/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2015-11-16T17:28:52Z","updated_at":"2015-11-19T16:43:03Z","due_on":"2016-01-16T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-11-19T16:43:03Z","updated_at":"2015-11-19T16:43:03Z","closed_at":null,"body":"Submitted the problem to Bodin:\r\n\r\n---\r\n**From:** LA-MJ\r\n**PostID:** [16895964.56](https://www.hattrick.org/goto.ashx?path=%2FForum%2FRead.aspx%3Ft%3D16895964%26n%3D56%26v%3D0)\r\n**To:** HT-Bodin\r\n**Re:** [16895964.54](https://www.hattrick.org/goto.ashx?path=%2FForum%2FRead.aspx%3Ft%3D16895964%26n%3D54%26v%3D0)\r\n**Datetime:** 2015-11-19 17:26\r\n**Message:**\r\n\r\n[(309565345)](https://www.hattrick.org/goto.ashx?path=%2FClub%2FPlayers%2FPlayerStats.aspx%3FPlayerID%3D309565345%26activeTab%3D1%26ShowAll%3DTrue%26BrowseIds%3D309565345%2C322477771%2C310092884%2C291247445%2C280372615%2C304729910%2C301830259%2C295206059%2C323380602%2C317880659%2C344550438%2C383910526%2C258184909%2C265731528%2C261007897%2C274745978%2C258042474%2C286558067%2C312177430%2C261009666%2C412381931%2C412402392%2C413473995)\r\n\r\nThis page colorizes rows (games) according to the week they are played. The HT ordering is useless imho, since it assumes that weeks start on Monday. While it may sound logical in a way, the results actually depend on the country in question. There are a few countries playing matches on Monday morning (HT time)\r\n\r\nIt's much more useful imho to group matches by training week (starts on +-Thursday) so you can instantly see if a player has been trained. Of course there's been a Foxtrick module for this switcharoo for a few years already :P\r\n\r\nNow we come to a problem... HT always uses HT timezone to detect which week the game is on, regardless on user setting. However, the dates 'printed' on that page DO acknowledge the user setting (correct behaviour). Since no exact match time (as in HH:MM) is available I can't detect this and reliably perform the above function.\r\n\r\nProposals in order of preference:\r\n1) implement training week grouping natively\r\n2) group matches according to user locale\r\n3) add match time in user locale somewhere in DOM\r\n\r\nThank you for consideration.\r\n"}}