Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Commit c5ee483

Browse files
Steve Greengermanattanasio
authored andcommitted
fix(date): date bug only showing 2018 (#5)
1 parent e5b000e commit c5ee483

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎app.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ app.use(bodyParser.json());
3737
var assistant = new AssistantV1({
3838
version: '2018-07-10'
3939
});
40-
41-
var nextMonth = ((new Date().getMonth() + 1) % 12) + 1;
40+
var date = new Date();
41+
date.setMonth(date.getMonth() + 1);
4242
var accountData = {
4343
acc_minamt: 50,
4444
acc_currbal: 430,
45-
acc_paydue: '2018-' + nextMonth + '-26 12:00:00',
45+
acc_paydue: date.getFullYear() + '-' + (date.getMonth() + 1) + '-26 12:00:00',
4646
accnames: [
4747
5624,
4848
5893,

0 commit comments

Comments
 (0)