{"action":"opened","issue":{"url":"https://api.github.com/repos/fruux/sabre-vobject/issues/179","labels_url":"https://api.github.com/repos/fruux/sabre-vobject/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/fruux/sabre-vobject/issues/179/comments","events_url":"https://api.github.com/repos/fruux/sabre-vobject/issues/179/events","html_url":"https://github.com/fruux/sabre-vobject/issues/179","id":53761573,"number":179,"title":"Floating icalendar dates are not correctly roundtripped","user":{"login":"kewisch","id":607198,"avatar_url":"https://avatars.githubusercontent.com/u/607198?v=3","gravatar_id":"","url":"https://api.github.com/users/kewisch","html_url":"https://github.com/kewisch","followers_url":"https://api.github.com/users/kewisch/followers","following_url":"https://api.github.com/users/kewisch/following{/other_user}","gists_url":"https://api.github.com/users/kewisch/gists{/gist_id}","starred_url":"https://api.github.com/users/kewisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kewisch/subscriptions","organizations_url":"https://api.github.com/users/kewisch/orgs","repos_url":"https://api.github.com/users/kewisch/repos","events_url":"https://api.github.com/users/kewisch/events{/privacy}","received_events_url":"https://api.github.com/users/kewisch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-08T15:21:25Z","updated_at":"2015-01-08T15:21:25Z","closed_at":null,"body":"When parsing an iCalendar string that contains a local/floating time, the json switches the timezone to UTC. Example:\r\n\r\n```php\r\n$ical = \"BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nUID:a03a61fc-ef74-413a-84b9-adecc317719b\r\nSUMMARY:test\r\nDTSTART:20150108T150000\r\nDTEND:20150108T160000\r\nEND:VEVENT\r\nEND:VCALENDAR\";\r\n\r\nprint $ical . \"\\n\";\r\n$x = \\Sabre\\VObject\\Reader::read($ical);\r\nprint json_encode($x->jsonSerialize());\r\n```\r\nThe result contains this:\r\n\r\n```json\r\n[\"dtstart\",{},\"date-time\",\"2015-01-08T15:00:00Z\"],\r\n[\"dtend\",{},\"date-time\",\"2015-01-08T16:00:00Z\"]\r\n```\r\n\r\nI would expect this:\r\n\r\n```json\r\n[\"dtstart\",{},\"date-time\",\"2015-01-08T15:00:00\"],\r\n[\"dtend\",{},\"date-time\",\"2015-01-08T16:00:00\"]\r\n```\r\n"}}