{"action":"created","issue":{"url":"https://api.github.com/repos/QuantConnect/Lean/issues/461","repository_url":"https://api.github.com/repos/QuantConnect/Lean","labels_url":"https://api.github.com/repos/QuantConnect/Lean/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/QuantConnect/Lean/issues/461/comments","events_url":"https://api.github.com/repos/QuantConnect/Lean/issues/461/events","html_url":"https://github.com/QuantConnect/Lean/issues/461","id":164257464,"number":461,"title":"Daily chart data in BacktestResultPacket for series \"Equity\" contains 6 days per week","user":{"login":"MoreDough","id":20052238,"avatar_url":"https://avatars.githubusercontent.com/u/20052238?v=3","gravatar_id":"","url":"https://api.github.com/users/MoreDough","html_url":"https://github.com/MoreDough","followers_url":"https://api.github.com/users/MoreDough/followers","following_url":"https://api.github.com/users/MoreDough/following{/other_user}","gists_url":"https://api.github.com/users/MoreDough/gists{/gist_id}","starred_url":"https://api.github.com/users/MoreDough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoreDough/subscriptions","organizations_url":"https://api.github.com/users/MoreDough/orgs","repos_url":"https://api.github.com/users/MoreDough/repos","events_url":"https://api.github.com/users/MoreDough/events{/privacy}","received_events_url":"https://api.github.com/users/MoreDough/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T08:38:43Z","updated_at":"2016-07-07T13:08:30Z","closed_at":"2016-07-07T13:08:30Z","body":"If timestamps for \"Equity\" are corrected so data for the series is no longer shifted compared to \"Benchmark\" and \"Daily Performance\" (see Issue #460), then the extra day is a sunday where the data value is identical to the value of the previous day with data in the datafile.\r\n\r\nTo replicate this error: run local backtest with BasicTemplateAlgorithm and in method LeanWinForms.MessagingOnBacktestResultEvent() create a data dump after \r\nfirst line \"if (packet.Progress != 1) return;\"\r\n\r\nThe data dump can use the following code to adjust from UTC to America/New_York:\r\nvar tz = DateTimeZoneProviders.Tzdb[\"America/New_York\"];\r\nvar localTimeKeeper = new LocalTimeKeeper(DateTime.UtcNow, tz);\r\nvar timestampAsDt = Time.UnixTimeStampToDateTime(timestamp);\r\nlocalTimeKeeper.UpdateTime(timestampAsDt);\r\nvar timestampAdjustedToNewYorkTime = localTimeKeeper.LocalTime;\r\n\r\n(Let me know if you need the dump code)"},"comment":{"url":"https://api.github.com/repos/QuantConnect/Lean/issues/comments/231072215","html_url":"https://github.com/QuantConnect/Lean/issues/461#issuecomment-231072215","issue_url":"https://api.github.com/repos/QuantConnect/Lean/issues/461","id":231072215,"user":{"login":"jaredbroad","id":2243225,"avatar_url":"https://avatars.githubusercontent.com/u/2243225?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredbroad","html_url":"https://github.com/jaredbroad","followers_url":"https://api.github.com/users/jaredbroad/followers","following_url":"https://api.github.com/users/jaredbroad/following{/other_user}","gists_url":"https://api.github.com/users/jaredbroad/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredbroad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredbroad/subscriptions","organizations_url":"https://api.github.com/users/jaredbroad/orgs","repos_url":"https://api.github.com/users/jaredbroad/repos","events_url":"https://api.github.com/users/jaredbroad/events{/privacy}","received_events_url":"https://api.github.com/users/jaredbroad/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T13:08:30Z","updated_at":"2016-07-07T13:08:30Z","body":"Duplicate of #458"}}
{"actor":{"display_login":"jaredbroad"}}