{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/10038","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10038/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10038/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10038/events","html_url":"https://github.com/joomla/joomla-cms/issues/10038","id":150311504,"number":10038,"title":"Bug in Calendar form field, week","user":{"login":"schnuti","id":956537,"avatar_url":"https://avatars.githubusercontent.com/u/956537?v=3","gravatar_id":"","url":"https://api.github.com/users/schnuti","html_url":"https://github.com/schnuti","followers_url":"https://api.github.com/users/schnuti/followers","following_url":"https://api.github.com/users/schnuti/following{/other_user}","gists_url":"https://api.github.com/users/schnuti/gists{/gist_id}","starred_url":"https://api.github.com/users/schnuti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnuti/subscriptions","organizations_url":"https://api.github.com/users/schnuti/orgs","repos_url":"https://api.github.com/users/schnuti/repos","events_url":"https://api.github.com/users/schnuti/events{/privacy}","received_events_url":"https://api.github.com/users/schnuti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-22T08:53:41Z","updated_at":"2016-04-22T10:49:48Z","closed_at":"2016-04-22T10:19:08Z","body":"#### Steps to reproduce the issue\r\nClick on a \"date\" field in a form. \r\n1. You'll see a week number that is wrong.\r\n2. The first day of the week is a sunday. \r\n\r\n#### Expected result\r\n1. A correct week. I have week 16 today the popup says 15.  \r\nYou can do some calculations on [timeanddate.com](http://www.timeanddate.com/date/weeknumber.html)\r\n2. Is a bug for a lot of users living in countries following international satandards ISO 8601 where monday is the first day of the week. If it's not configurable the ISO standard should be followed.\r\n\r\nYou get the expected results with the php-object DateTime(). I've tested.\r\n\r\n#### System information (as much as possible)\r\nJoomla 3.5.1\r\nPHP  7.0.4\r\n\r\n#### Additional comments\r\nIt's better to remove the week from the popup than show a false one. This can be done by changing a js setting. I wanted to use the calandar to help the user find a week number - not possble,\r\n\r\nI also tried to modify the setting for the first week day but it seems not to work.\r\n\r\nI tried to use a template override for the isis template but the javascript code didn't load for some reason?\r\n\r\nI'm not fit enough to make a PR with javascript.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/213376185","html_url":"https://github.com/joomla/joomla-cms/issues/10038#issuecomment-213376185","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10038","id":213376185,"user":{"login":"brianteeman","id":1296369,"avatar_url":"https://avatars.githubusercontent.com/u/1296369?v=3","gravatar_id":"","url":"https://api.github.com/users/brianteeman","html_url":"https://github.com/brianteeman","followers_url":"https://api.github.com/users/brianteeman/followers","following_url":"https://api.github.com/users/brianteeman/following{/other_user}","gists_url":"https://api.github.com/users/brianteeman/gists{/gist_id}","starred_url":"https://api.github.com/users/brianteeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianteeman/subscriptions","organizations_url":"https://api.github.com/users/brianteeman/orgs","repos_url":"https://api.github.com/users/brianteeman/repos","events_url":"https://api.github.com/users/brianteeman/events{/privacy}","received_events_url":"https://api.github.com/users/brianteeman/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T10:49:48Z","updated_at":"2016-04-22T10:49:48Z","body":"Not all parts of the world consider the week to begin with Monday. For example, in some Muslim countries, the normal work week begins on Saturday, while in Israel it begins on Sunday. In the US, although the work week is usually defined to start on Monday, the week itself is often considered to start on Sunday."}}