{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8572","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8572/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8572/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8572/events","html_url":"https://github.com/yiisoft/yii2/issues/8572","id":81400161,"number":8572,"title":"Strange issue with TimestampBehavior","user":{"login":"turalsprofile","id":724507,"avatar_url":"https://avatars.githubusercontent.com/u/724507?v=3","gravatar_id":"","url":"https://api.github.com/users/turalsprofile","html_url":"https://github.com/turalsprofile","followers_url":"https://api.github.com/users/turalsprofile/followers","following_url":"https://api.github.com/users/turalsprofile/following{/other_user}","gists_url":"https://api.github.com/users/turalsprofile/gists{/gist_id}","starred_url":"https://api.github.com/users/turalsprofile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turalsprofile/subscriptions","organizations_url":"https://api.github.com/users/turalsprofile/orgs","repos_url":"https://api.github.com/users/turalsprofile/repos","events_url":"https://api.github.com/users/turalsprofile/events{/privacy}","received_events_url":"https://api.github.com/users/turalsprofile/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/severity:important","name":"severity:important","color":"eb6420"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:to%20be%20verified","name":"status:to be verified","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/13","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.6","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/13/labels","id":1000704,"number":13,"title":"2.0.6","description":"","creator":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":164,"state":"closed","created_at":"2015-03-01T16:03:07Z","updated_at":"2015-08-18T13:50:07Z","due_on":"2015-07-25T22:00:00Z","closed_at":"2015-08-05T22:18:07Z"},"comments":34,"created_at":"2015-05-27T10:59:03Z","updated_at":"2015-11-03T11:45:44Z","closed_at":"2015-05-28T23:39:13Z","body":"UpdatedAt works well after any moficiation in row. But, I can't say the same for row creation. \r\nAfter new row creation `createdAt` still 0000-...\r\n      \r\n    public function behaviors()\r\n      {\r\n        return [\r\n            [\r\n                'class' => TimestampBehavior::className(),\r\n                'createdAtAttribute' => 'createdAt',\r\n                'updatedAtAttribute' => 'updatedAt',\r\n                'value' => new Expression('NOW()')\r\n            ],\r\n          ];\r\n      }\r\n\r\nHere is database table: http://prntscr.com/79xt5n\r\n\r\nAnd here is model: https://gist.github.com/turalsprofile/85eca5d307074b42a215\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/153327925","html_url":"https://github.com/yiisoft/yii2/issues/8572#issuecomment-153327925","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8572","id":153327925,"user":{"login":"c-schmitz","id":1364282,"avatar_url":"https://avatars.githubusercontent.com/u/1364282?v=3","gravatar_id":"","url":"https://api.github.com/users/c-schmitz","html_url":"https://github.com/c-schmitz","followers_url":"https://api.github.com/users/c-schmitz/followers","following_url":"https://api.github.com/users/c-schmitz/following{/other_user}","gists_url":"https://api.github.com/users/c-schmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/c-schmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-schmitz/subscriptions","organizations_url":"https://api.github.com/users/c-schmitz/orgs","repos_url":"https://api.github.com/users/c-schmitz/repos","events_url":"https://api.github.com/users/c-schmitz/events{/privacy}","received_events_url":"https://api.github.com/users/c-schmitz/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T11:45:44Z","updated_at":"2015-11-03T11:45:44Z","body":"This fix does not seems to be in 2.0.6 - why?"}}