【发布时间】:2015-08-16 13:50:35
【问题描述】:
我收到错误 { [error: date/time field value out of range: "1439728672"] .. 。
我使用没有时区的时间戳作为列并执行如下查询使用CURRENT_TIMESTAMP 我在另一个数据库/表中成功了我不知道为什么?
列
"CreateDate" timestamp without time zone,
...
nodejs postgres
var query = 'INSERT INTO "Article" ("Content","CreateDate") VALUES ($1,CURRENT_TIMESTAMP) RETURNING "ArticleId"';
dbClient.query(query,[content], function(error, result) {
});
【问题讨论】:
标签: sql node.js postgresql