Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for UTC dates as a config param #289

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixing date format in test-timezone-default.js
  • Loading branch information
BryanDonovan committed Sep 12, 2012
commit 4bde2a8ad1dbe3f1cd963396303085b75bcb9ff7
3 changes: 2 additions & 1 deletion test/integration/connection/test-timezone-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ connection.query([

var result;
var now = new Date();
var nowString = now.toISOString();
// Removing the decimal portion of the date string for Travis CI.
var nowString = now.toISOString().replace(/\.\d\d\dZ/, '');

connection.query('INSERT INTO ' + table + ' SET ?', {created_at: nowString}, function(err, _result) {
if (err) throw err;
Expand Down