Skip to content

Commit

Permalink
cleaned up indention.
Browse files Browse the repository at this point in the history
  • Loading branch information
keverw committed Dec 13, 2012
1 parent b9cacd4 commit 6a5b7ca
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ var alreadyFiles = fs.readdirSync(watchDir);

function getTimeStamp()
{
var currentTime = new Date();

var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();

var string = month + "/" + day + "/" + year;

var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
var seconds = currentTime.getSeconds();
if (minutes < 10) {
minutes = "0" + minutes;
}

string += ' ' + hours + ":" + minutes + ":" + seconds + ' ';
string += (hours > 11) ? 'PM' : 'AM';
return string;
var currentTime = new Date();

var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();

var string = month + "/" + day + "/" + year;

var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
var seconds = currentTime.getSeconds();
if (minutes < 10) {
minutes = "0" + minutes;
}

string += ' ' + hours + ":" + minutes + ":" + seconds + ' ';
string += (hours > 11) ? 'PM' : 'AM';
return string;
}

function handleDisconnect(connection) //prevent crash on disconnect
Expand Down

0 comments on commit 6a5b7ca

Please sign in to comment.