不要怂,就是干,撸起袖子干!

Commit 8c274f0a by reedog117

change to fix timezone issue

1 parent c5848100
......@@ -40,7 +40,7 @@ module.exports = (function() {
} else if( parseIso8601.call(this, row[prop]) ) {
// if string can be converted into a JS date, it probably
// is a JS date -- replace the string with the date
row[prop] = parseIso8601.call(this, row[prop])
row[prop] = parseIso8601.call(this, row[prop] + 'Z')
} else if( !isNaN(row[prop]) ) {
// take care of strings that are really numbers
row[prop] = +(row[prop]);
......
......@@ -13,6 +13,15 @@ module.exports = {
pool: { maxConnections: 5, maxIdleTime: 30}
},
mariadb: {
username: "root",
password: null,
database: 'sequelize_test',
host: '127.0.0.1',
port: 3306,
pool: { maxConnections: 5, maxIdleTime: 30}
},
sqlite: {
},
......
var config = require("./config/config")
, Sequelize = require("../index")
, dialects = ['sqlite', 'mysql', 'postgres']
, dialects = ['sqlite', 'mysql', 'mariadb', 'postgres']
describe('DAOFactory', function() {
dialects.forEach(function(dialect) {
......
var config = require("./config/config")
, Sequelize = require("../index")
, dialects = ['sqlite', 'mysql', 'postgres']
, dialects = ['sqlite', 'mysql', 'mariadb', 'postgres']
describe('DAO', function() {
dialects.forEach(function(dialect) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!