Skip to content

Commit 2baffe9

Browse files
committed
chnages
1 parent 9baecc4 commit 2baffe9

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ nodeblog
33
[Obtvse](http://github.com/NateW/obtvse) nodejs implementation.
44

55
## About
6-
[Obtvse] (https://github.com/natew/obtvse) is developed by [@natew](https://github.com/natew) with Ruby&Rails.
7-
I am not familiar with Ruby&Rails and I thought it is a good opportunity to make it work with nodejs. [@gorekee](https://github.com/gorekee) has already [started](https://github.com/gorekee/obtvse-node.js) and he
8-
is currently busy to continue. I asked his permission, and will be copying his code and rewriting most of it to create a full nodejs implementation.
6+
[Obtvse] (https://github.com/natew/obtvse) is developed by [@natew](https://github.com/natew) with Ruby&Rails.
7+
[@gorekee](https://github.com/gorekee) has already [started](https://github.com/gorekee/obtvse-node.js) to convert it to nodejs, and I
8+
asked his permission to continue his work
99

1010
## Configuration
1111
Set MySql database and login information into the config.json under user/password.
@@ -16,6 +16,3 @@ First run `npm install` for dependencies, then run `node app.js` in order to sta
1616
![Admin](http://i.imgur.com/hfnm9.png)
1717
![Draft](http://i.imgur.com/x4lXL.png)
1818
![Live](http://i.imgur.com/wbVJN.png)
19-
20-
## Notes
21-
For now logging is disabled, will enable it once make it running.

lib/helpers/date.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ var
33
monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
44
date = new Date(),
55
month = date.getMonth(),
6-
day = date.getDay() + 1,
6+
day = date.getDate(),
77
year = date.getFullYear();
88

99
// get current date
10-
this.getDate = function() {
10+
exports.getDate = function() {
1111
day = String(day).length < 2 ? '0' + day : day;
1212
return monthNames[month] + ' ' + day + ', ' + year;
1313
};
14-

0 commit comments

Comments
 (0)