{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/17166","labels_url":"https://api.github.com/repos/owncloud/core/issues/17166/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/17166/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/17166/events","html_url":"https://github.com/owncloud/core/issues/17166","id":90932408,"number":17166,"title":"OCS Share API Date improvements","user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"},{"url":"https://api.github.com/repos/owncloud/core/labels/sharing","name":"sharing","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-next","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-next","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":632,"closed_issues":0,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-06-25T12:46:17Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-06-25T11:15:47Z","updated_at":"2015-06-25T14:05:51Z","closed_at":null,"body":"Currently the OCS Share API returns expiration dates as follows ```YYYY-MM-DD hh:mm:ss``` this is non practical for several reasons.\r\n\r\n- It is not a valid date according to ISO8601\r\n- It does not include timezone information (so it is always local server time)\r\n- ```hh:mm:ss``` is always ```00:00:00```\r\n\r\nNow we could do two things.\r\n\r\n### Fix the date format\r\nMove to proper ISO8601 dates. We could then show the time in UTC (```YYYY-MM-DDThh:mm:ssZ```) or in the actual timezone of the server (```YYYY-MM-DDThh:mm:ss+hh:mm```). The latter seems nicer.\r\n\r\nThe API could then also properly accept date and times using timezones.\r\n\r\nLets say my server is located in the Netherlands but I have users from the US on my server. If somebody from the US shares a file with an expiration date X then he would expect the same behaviour as if his server was located in the US. This would become possible using timezones.\r\n\r\n### Remove time\r\nSince really we are only interested in Dates we could just leave the time.\r\n\r\nHowever, then it would be a good idea to show the timezone of the server. So that clients can know when a share will expire. If the server has a different timezone than the client.\r\n\r\n### My opinion\r\nAt first I was very much in favour of removing the time. But the more I think about the the more the first solution appeals to me. However that would require some rethinking of the UX, maybe show the timezone in some way..\r\n\r\n@jancborchardt from a UX point of view which one do you prefer?\r\n\r\nCC: @DeepDiver1975 @PVince81 @schiesbn "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/115269321","html_url":"https://github.com/owncloud/core/issues/17166#issuecomment-115269321","issue_url":"https://api.github.com/repos/owncloud/core/issues/17166","id":115269321,"user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T14:05:50Z","updated_at":"2015-06-25T14:05:50Z","body":"@schiesbn agreed. Altough, it does not solve the issue that it is always in server time. Which does not have to be the timezone of the user."}}