git ssb

0+

mixmix / patchbay-scry



Commit 1762f511f7652547503a78879811525130dacc62

fix month bug!

mixmix committed on 9/5/2018, 4:38:03 AM
Parent: edcc95e36db325ce7977d1fe7522bf3633615898

Files changed

views/show.jschanged
views/show.test.jschanged
views/show.jsView
@@ -233,9 +233,9 @@
233233 ])
234234 }
235235
236236 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']
238238
239239 return months[date.getMonth()]
240240 }
241241
views/show.test.jsView
@@ -15,16 +15,16 @@
1515 // scry
1616 const opts = {
1717 title: 'Ziva\'s first Birthday Party',
1818 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)
2525 ],
26- closesAt: time(2018, 10, 1)
26 + closesAt: time(2020, 9, 25)
2727 }
2828
2929 const katie = sbot.createFeed()
3030 const piet = sbot.createFeed()

Built with git-ssb-web