{"action":"opened","issue":{"url":"https://api.github.com/repos/k-next/starterkit/issues/319","repository_url":"https://api.github.com/repos/k-next/starterkit","labels_url":"https://api.github.com/repos/k-next/starterkit/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/k-next/starterkit/issues/319/comments","events_url":"https://api.github.com/repos/k-next/starterkit/issues/319/events","html_url":"https://github.com/k-next/starterkit/issues/319","id":309831085,"number":319,"title":"[CMS] Page::modified() returns NULL","user":{"login":"rasteiner","id":6684137,"avatar_url":"https://avatars3.githubusercontent.com/u/6684137?v=4","gravatar_id":"","url":"https://api.github.com/users/rasteiner","html_url":"https://github.com/rasteiner","followers_url":"https://api.github.com/users/rasteiner/followers","following_url":"https://api.github.com/users/rasteiner/following{/other_user}","gists_url":"https://api.github.com/users/rasteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/rasteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasteiner/subscriptions","organizations_url":"https://api.github.com/users/rasteiner/orgs","repos_url":"https://api.github.com/users/rasteiner/repos","events_url":"https://api.github.com/users/rasteiner/events{/privacy}","received_events_url":"https://api.github.com/users/rasteiner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-29T16:59:27Z","updated_at":"2018-03-29T16:59:27Z","closed_at":null,"author_association":"NONE","body":"Not sure if it's a bug or simply a no longer implemented leftover from a previous version... \r\n\r\n[$page->modified()](https://github.com/k-next/kirby/blob/6aa877ed6adcf666e20562dac753089ff2be8654/src/Cms/Page.php#L558) seems to always return NULL. \r\n\r\nProbably because `$page->content()->get('modified')` is empty. \r\n\r\n## How to reproduce\r\n\r\nadd the following code to a template\r\n\r\n    <?php \r\n      var_dump($page->modified())       \r\n    ?>\r\n\r\n### What is expected\r\na string containing the timestamp of the last edit. (passing NULL as $format to toDate() returns a timestamp)\r\n\r\n### What happens\r\n`NULL` is printed."}}
{"actor":{"display_login":"rasteiner"}}