fixed timezone flakiness

This commit is contained in:
Gareth Jones 2014-04-09 07:43:40 +10:00
parent e4d5228f2b
commit 9b538ee8ed

View File

@ -188,6 +188,9 @@ vows.describe('log4js layouts').addBatch({
testFunction: function() { return 'testFunctionToken'; }, testFunction: function() { return 'testFunctionToken'; },
fnThatUsesLogEvent: function(logEvent) { return logEvent.level.toString(); } fnThatUsesLogEvent: function(logEvent) { return logEvent.level.toString(); }
}; };
//override getTimezoneOffset
event.startTime.getTimezoneOffset = function() { return 0; };
return [layout, event, tokens]; return [layout, event, tokens];
}, },