{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/90","repository_url":"https://api.github.com/repos/sequelize/sequelize-auto","labels_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/90/comments","events_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/90/events","html_url":"https://github.com/sequelize/sequelize-auto/issues/90","id":160204400,"number":90,"title":"Use sequelize.now instead of current_timestamp","user":{"login":"crephix","id":10536755,"avatar_url":"https://avatars.githubusercontent.com/u/10536755?v=3","gravatar_id":"","url":"https://api.github.com/users/crephix","html_url":"https://github.com/crephix","followers_url":"https://api.github.com/users/crephix/followers","following_url":"https://api.github.com/users/crephix/following{/other_user}","gists_url":"https://api.github.com/users/crephix/gists{/gist_id}","starred_url":"https://api.github.com/users/crephix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crephix/subscriptions","organizations_url":"https://api.github.com/users/crephix/orgs","repos_url":"https://api.github.com/users/crephix/repos","events_url":"https://api.github.com/users/crephix/events{/privacy}","received_events_url":"https://api.github.com/users/crephix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-14T15:00:54Z","updated_at":"2016-06-29T15:53:18Z","closed_at":null,"body":"Hello,\r\nI think sequelize-auto should use sequelize.now instead of current_timestamp as default value for the models because otherwise sequelize will throw an excpeption/warning:\r\n\r\nDeprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.\r\nArguments: [object Object]\r\nError\r\n    at Function.createFromInputFallback (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:271:105)\r\n    at configFromString (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:1169:32)\r\n    at configFromInput (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:1675:13)\r\n    at prepareConfig (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:1658:13)\r\n    at createFromConfig (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:1625:44)\r\n    at createLocalOrUTC (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:1707:16)\r\n    at local__createLocal (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:1711:16)\r\n    at utils_hooks__hooks (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\moment\\moment.js:16:29)\r\n    at DATE.$applyTimezone (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\data-types.js:473:14)\r\n    at DATE.$stringify (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\dialects\\mysql\\data-types.js:34:37)\r\n    at ABSTRACT.stringify (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\data-types.js:77:17)\r\n    at Object.QueryGenerator.escape (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-generator.js:966:32)\r\n    at Object.QueryGenerator.insertQuery (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-generator.js:298:28)\r\n    at QueryInterface.insert (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\query-interface.js:497:33)\r\n    at .<anonymous> (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\sequelize\\lib\\instance.js:670:56)\r\n    at tryCatcher (C:\\Users\\h9pe\\WebstormProjects\\AuthServerWebSockets\\node_modules\\bluebird\\js\\release\\util.js:16:23)\r\n\r\n\r\nAfter I have changed it to sequelize.now() it didn't throw an error anymore."},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/comments/229400927","html_url":"https://github.com/sequelize/sequelize-auto/issues/90#issuecomment-229400927","issue_url":"https://api.github.com/repos/sequelize/sequelize-auto/issues/90","id":229400927,"user":{"login":"crephix","id":10536755,"avatar_url":"https://avatars.githubusercontent.com/u/10536755?v=3","gravatar_id":"","url":"https://api.github.com/users/crephix","html_url":"https://github.com/crephix","followers_url":"https://api.github.com/users/crephix/followers","following_url":"https://api.github.com/users/crephix/following{/other_user}","gists_url":"https://api.github.com/users/crephix/gists{/gist_id}","starred_url":"https://api.github.com/users/crephix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crephix/subscriptions","organizations_url":"https://api.github.com/users/crephix/orgs","repos_url":"https://api.github.com/users/crephix/repos","events_url":"https://api.github.com/users/crephix/events{/privacy}","received_events_url":"https://api.github.com/users/crephix/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T15:53:18Z","updated_at":"2016-06-29T15:53:18Z","body":"Since I experience the problem again in another project here is another model with this issue: https://ghostbin.com/paste/7dnrr"}}
{"actor":{"display_login":"crephix"}}