{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfCake/crud-view/issues/90","labels_url":"https://api.github.com/repos/FriendsOfCake/crud-view/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud-view/issues/90/comments","events_url":"https://api.github.com/repos/FriendsOfCake/crud-view/issues/90/events","html_url":"https://github.com/FriendsOfCake/crud-view/pull/90","id":109478131,"number":90,"title":"Fix datepicker issues","user":{"login":"GuidoHendriks","id":5393965,"avatar_url":"https://avatars.githubusercontent.com/u/5393965?v=3","gravatar_id":"","url":"https://api.github.com/users/GuidoHendriks","html_url":"https://github.com/GuidoHendriks","followers_url":"https://api.github.com/users/GuidoHendriks/followers","following_url":"https://api.github.com/users/GuidoHendriks/following{/other_user}","gists_url":"https://api.github.com/users/GuidoHendriks/gists{/gist_id}","starred_url":"https://api.github.com/users/GuidoHendriks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuidoHendriks/subscriptions","organizations_url":"https://api.github.com/users/GuidoHendriks/orgs","repos_url":"https://api.github.com/users/GuidoHendriks/repos","events_url":"https://api.github.com/users/GuidoHendriks/events{/privacy}","received_events_url":"https://api.github.com/users/GuidoHendriks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-02T11:59:48Z","updated_at":"2015-10-02T15:52:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FriendsOfCake/crud-view/pulls/90","html_url":"https://github.com/FriendsOfCake/crud-view/pull/90","diff_url":"https://github.com/FriendsOfCake/crud-view/pull/90.diff","patch_url":"https://github.com/FriendsOfCake/crud-view/pull/90.patch"},"body":"This PR solves 2 issues I came across while implementing Crud-View in one of my projects. And I also bumped the version of the datepicker.\r\n\r\n**First issue:**\r\nlocale_get_primary_language() was used to strip the locale, that didn't work with locales like `en_GB`.\r\n\r\nDiscussed in the following issue: https://github.com/FriendsOfCake/crud-view/issues/88.\r\n\r\n**Second issue:**\r\nThe date picker somehow used the clients timezone, so if the time on server said 08:00 UTC, the date picker would use 10:00 +02:00. Originally I thought it was about Moment.js used in the bootstrap-datetimepicker, but it turned out to be code in this Crud-view.\r\n\r\nTo be clear, this issue only occurs when the app's timezone, defined in `bootstrap.php` does not match the timezone used in the web browser.\r\n\r\n@lorenzo What's your thought on this one? You've implemented the timestamp approach. Maybe there was some reasoning behind that approach I might have missed.\r\n\r\nDiscussed in the following issue: https://github.com/FriendsOfCake/crud-view/issues/87"},"comment":{"url":"https://api.github.com/repos/FriendsOfCake/crud-view/issues/comments/145069444","html_url":"https://github.com/FriendsOfCake/crud-view/pull/90#issuecomment-145069444","issue_url":"https://api.github.com/repos/FriendsOfCake/crud-view/issues/90","id":145069444,"user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T15:52:54Z","updated_at":"2015-10-02T15:52:54Z","body":"That is actually my use case for that file. My browser timezone is in Copenhagen, but the app is in UTC"}}