{"action":"opened","issue":{"url":"https://api.github.com/repos/luisfarzati/ng-bs-daterangepicker/issues/78","labels_url":"https://api.github.com/repos/luisfarzati/ng-bs-daterangepicker/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/luisfarzati/ng-bs-daterangepicker/issues/78/comments","events_url":"https://api.github.com/repos/luisfarzati/ng-bs-daterangepicker/issues/78/events","html_url":"https://github.com/luisfarzati/ng-bs-daterangepicker/issues/78","id":99251945,"number":78,"title":"Timezones issue","user":{"login":"divan","id":880202,"avatar_url":"https://avatars.githubusercontent.com/u/880202?v=3","gravatar_id":"","url":"https://api.github.com/users/divan","html_url":"https://github.com/divan","followers_url":"https://api.github.com/users/divan/followers","following_url":"https://api.github.com/users/divan/following{/other_user}","gists_url":"https://api.github.com/users/divan/gists{/gist_id}","starred_url":"https://api.github.com/users/divan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divan/subscriptions","organizations_url":"https://api.github.com/users/divan/orgs","repos_url":"https://api.github.com/users/divan/repos","events_url":"https://api.github.com/users/divan/events{/privacy}","received_events_url":"https://api.github.com/users/divan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T17:05:43Z","updated_at":"2015-08-05T17:05:43Z","closed_at":null,"body":"When selecting range, timestamps seems to be in local timezone, but stored without TZ info (which means to be UTC)\r\n\r\nI.e. is range \"2015-08-01 - 2015-08-05\" and local time zone GMT-04, timestamps should be '2015-08-01T04:00:00.000Z-04:00' - '2015-08-01T23:59:59.999Z-04:00' or in UTC '2015-08-01T04:00:00.000Z' - '2015-08-05T23:59:59.999Z'. (we need to get *dates* range, after all, regardless of browser timezone).\r\n\r\nInstead model object contains '2015-08-01T04:00:00.000Z' - '2015-08-06T03:59:59.999Z' - without TZ info, which stands for UTC, which is incorrect. And any code (backend, for example) which need to deal with this range doesn't know what real timezone was and what real date range was meant.\r\n\r\nIs it easy to fix, or it's some design flaw and not trivial to fix?"}}