{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7384","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7384/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7384/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7384/events","html_url":"https://github.com/yiisoft/yii2/issues/7384","id":58476458,"number":7384,"title":"Incorrect timestamp inserted when using \\yii\\log\\DbTarget with default log table schema on mysql","user":{"login":"SDKiller","id":2150916,"avatar_url":"https://avatars.githubusercontent.com/u/2150916?v=3","gravatar_id":"","url":"https://api.github.com/users/SDKiller","html_url":"https://github.com/SDKiller","followers_url":"https://api.github.com/users/SDKiller/followers","following_url":"https://api.github.com/users/SDKiller/following{/other_user}","gists_url":"https://api.github.com/users/SDKiller/gists{/gist_id}","starred_url":"https://api.github.com/users/SDKiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SDKiller/subscriptions","organizations_url":"https://api.github.com/users/SDKiller/orgs","repos_url":"https://api.github.com/users/SDKiller/repos","events_url":"https://api.github.com/users/SDKiller/events{/privacy}","received_events_url":"https://api.github.com/users/SDKiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/11","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.3","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/11/labels","id":896106,"number":11,"title":"2.0.3","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":23,"closed_issues":199,"state":"open","created_at":"2014-12-08T18:26:37Z","updated_at":"2015-02-25T13:05:23Z","due_on":"2015-03-01T05:00:00Z","closed_at":null},"comments":25,"created_at":"2015-02-21T21:49:13Z","updated_at":"2015-02-25T13:05:43Z","closed_at":null,"body":"Values are rounded when sql is prepared\r\n\r\n```\r\n            $command->bindValues([\r\n                ':level' => $level,\r\n                ':category' => $category,\r\n                ':log_time' => $timestamp,\r\n                ':prefix' => $this->getMessagePrefix($message),\r\n                ':message' => $text,\r\n            ])->execute();\r\n```\r\n\r\n![qip shot - screen 569 22 02 15](https://cloud.githubusercontent.com/assets/2150916/6316139/0006ff14-ba2c-11e4-9566-cd886051bda0.png)\r\n\r\nDumping time shows that `$timestamp` passed to `bindValues` is correct - something like `1424554418.4581`\r\n\r\nMySQL 5.5.41\r\nmysqlnd 5.0.10"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/75956211","html_url":"https://github.com/yiisoft/yii2/issues/7384#issuecomment-75956211","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/7384","id":75956211,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T13:05:43Z","updated_at":"2015-02-25T13:05:43Z","body":"@qiangxue yes."}}