Commit 1762f511f7652547503a78879811525130dacc62
fix month bug!
mixmix committed on 9/5/2018, 4:38:03 AMParent: edcc95e36db325ce7977d1fe7522bf3633615898
Files changed
views/show.js | changed |
views/show.test.js | changed |
views/show.js | |||
---|---|---|---|
@@ -233,9 +233,9 @@ | |||
233 | 233 … | ]) | |
234 | 234 … | } | |
235 | 235 … | ||
236 | 236 … | function month (date) { | |
237 | - const months = ['Jan', 'Feb', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | ||
237 … | + const months = ['Jan', 'Feb', 'March', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'] | ||
238 | 238 … | ||
239 | 239 … | return months[date.getMonth()] | |
240 | 240 … | } | |
241 | 241 … |
views/show.test.js | ||
---|---|---|
@@ -15,16 +15,16 @@ | ||
15 | 15 … | // scry |
16 | 16 … | const opts = { |
17 | 17 … | title: 'Ziva\'s first Birthday Party', |
18 | 18 … | choices: [ |
19 | - time(2018, 10, 21, 10), | |
20 | - time(2018, 10, 21, 14), | |
21 | - time(2018, 10, 21, 16), | |
22 | - time(2018, 10, 22, 10), | |
23 | - time(2018, 10, 22, 14), | |
24 | - time(2018, 10, 22, 16) | |
19 … | + time(2018, 9, 21, 10), | |
20 … | + time(2018, 9, 21, 14), | |
21 … | + time(2018, 9, 21, 16), | |
22 … | + time(2018, 9, 22, 10), | |
23 … | + time(2018, 9, 22, 14), | |
24 … | + time(2018, 9, 22, 16) | |
25 | 25 … | ], |
26 | - closesAt: time(2018, 10, 1) | |
26 … | + closesAt: time(2020, 9, 25) | |
27 | 27 … | } |
28 | 28 … | |
29 | 29 … | const katie = sbot.createFeed() |
30 | 30 … | const piet = sbot.createFeed() |
Built with git-ssb-web