{"action":"created","issue":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/1149","repository_url":"https://api.github.com/repos/instructure/canvas-lms","labels_url":"https://api.github.com/repos/instructure/canvas-lms/issues/1149/labels{/name}","comments_url":"https://api.github.com/repos/instructure/canvas-lms/issues/1149/comments","events_url":"https://api.github.com/repos/instructure/canvas-lms/issues/1149/events","html_url":"https://github.com/instructure/canvas-lms/issues/1149","id":269900224,"number":1149,"title":"Assignments submission time is wrong","user":{"login":"Bicet","id":265162,"avatar_url":"https://avatars1.githubusercontent.com/u/265162?v=4","gravatar_id":"","url":"https://api.github.com/users/Bicet","html_url":"https://github.com/Bicet","followers_url":"https://api.github.com/users/Bicet/followers","following_url":"https://api.github.com/users/Bicet/following{/other_user}","gists_url":"https://api.github.com/users/Bicet/gists{/gist_id}","starred_url":"https://api.github.com/users/Bicet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bicet/subscriptions","organizations_url":"https://api.github.com/users/Bicet/orgs","repos_url":"https://api.github.com/users/Bicet/repos","events_url":"https://api.github.com/users/Bicet/events{/privacy}","received_events_url":"https://api.github.com/users/Bicet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-10-31T10:03:34Z","updated_at":"2018-02-22T07:49:32Z","closed_at":null,"author_association":"NONE","body":"### Summary:\r\n\r\n### Steps to reproduce:\r\n\r\n 1. As a teacher create an assignment with a due date and time\r\n 2. As a student complete the assignment in the hour before the due time\r\n\r\n### Expected behavior:\r\nSubmitting the document in the hour before the due time, should result in \"ON time\", but it is set to LATE (see attachment)\r\n\r\n### Additional notes:\r\nServer time is ok, timezone is ok, also time of submission is perfect, is only the \"late submission\" appearing 1 hour before it should appear\r\n<img width=\"1330\" alt=\"screen shot 2017-10-31 at 11 01 31\" src=\"https://user-images.githubusercontent.com/265162/32218430-1f8a737e-be2b-11e7-8f97-7378fa744240.png\">\r\n "},"comment":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/comments/367594941","html_url":"https://github.com/instructure/canvas-lms/issues/1149#issuecomment-367594941","issue_url":"https://api.github.com/repos/instructure/canvas-lms/issues/1149","id":367594941,"user":{"login":"3arrows","id":11420682,"avatar_url":"https://avatars0.githubusercontent.com/u/11420682?v=4","gravatar_id":"","url":"https://api.github.com/users/3arrows","html_url":"https://github.com/3arrows","followers_url":"https://api.github.com/users/3arrows/followers","following_url":"https://api.github.com/users/3arrows/following{/other_user}","gists_url":"https://api.github.com/users/3arrows/gists{/gist_id}","starred_url":"https://api.github.com/users/3arrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3arrows/subscriptions","organizations_url":"https://api.github.com/users/3arrows/orgs","repos_url":"https://api.github.com/users/3arrows/repos","events_url":"https://api.github.com/users/3arrows/events{/privacy}","received_events_url":"https://api.github.com/users/3arrows/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T07:49:32Z","updated_at":"2018-02-22T07:49:32Z","author_association":"NONE","body":"I think that Canvas has some serious bugs in handling timezone.\r\nThe problem of assignments submission time above is caused by using Time.now method in the submission model.\r\n\r\nIt should be coded with the Time.now.utc, Time.current or Time.zone.xxx, etc. Using Time.now is wrong in Ruby on Rails for the global system application.\r\n\r\nIf you use Time.now method, it returns the local time of system environment. Datetime settings in config/application.rb will be ignored. This is a specification of the Ruby programing language.\r\nWhen your Canvas goes live in local timezone (such as CET) other than \"UTC\" timezone, calculation of time will be wrong in due date of every kind.\r\n\r\nSo, Instructure should make changes for a number of Time.now method in the whole Canvas application code.\r\n\r\n"}}
{"actor":{"display_login":"3arrows"}}