Skip to content

Commit

Permalink
more readable date formatting in logger
Browse files Browse the repository at this point in the history
  • Loading branch information
shanebo committed Feb 11, 2014
1 parent 9c44b27 commit 9a71293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/logger.js
Expand Up @@ -9,7 +9,7 @@ Logger.prototype = {

logger: function(request, response){
var duration = new Date - request.started;
var started = request.started.format('%m/%d/%Y %H:%M:%S %z');
var started = request.started.format('%m/%d/%Y %l:%M:%S%p %z').clean();

if (request.calvin.route) {
console.log('\n');
Expand Down

0 comments on commit 9a71293

Please sign in to comment.