{"action":"opened","issue":{"url":"https://api.github.com/repos/go-xorm/xorm/issues/292","labels_url":"https://api.github.com/repos/go-xorm/xorm/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/go-xorm/xorm/issues/292/comments","events_url":"https://api.github.com/repos/go-xorm/xorm/issues/292/events","html_url":"https://github.com/go-xorm/xorm/issues/292","id":104409652,"number":292,"title":"tag \"created\" make proper time value invalid","user":{"login":"fuxiaohei","id":2142787,"avatar_url":"https://avatars.githubusercontent.com/u/2142787?v=3","gravatar_id":"","url":"https://api.github.com/users/fuxiaohei","html_url":"https://github.com/fuxiaohei","followers_url":"https://api.github.com/users/fuxiaohei/followers","following_url":"https://api.github.com/users/fuxiaohei/following{/other_user}","gists_url":"https://api.github.com/users/fuxiaohei/gists{/gist_id}","starred_url":"https://api.github.com/users/fuxiaohei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fuxiaohei/subscriptions","organizations_url":"https://api.github.com/users/fuxiaohei/orgs","repos_url":"https://api.github.com/users/fuxiaohei/repos","events_url":"https://api.github.com/users/fuxiaohei/events{/privacy}","received_events_url":"https://api.github.com/users/fuxiaohei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T06:14:17Z","updated_at":"2015-09-02T06:14:17Z","closed_at":null,"body":"```go\r\ntype TimeTesting struct {\r\n    CreateTime int64  `xorm:\"created\"`\r\n    UpdateTime int64  `xorm:\"updated\"`\r\n}\r\n\r\nfunc test(){\r\n    timeTest := &TimeTesting{\r\n        CreateTime:time.Now().Add(-8*time.Hour),\r\n        UpdateTime:time.Now().Add(-8*time.Hour),\r\n    }\r\n    engine.Insert(timeTest)\r\n}\r\n```\r\n\r\nthe `time.Now().Add(-8*time.Hour)` value is useless if the field is in tag `xorm:\"created\"`.\r\n\r\nit's same when `engine.Update()` with `xorm:\"updated\"` tag."}}