Skip to content

Commit

Permalink
Merge branch 'release/2.1.2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
adufr committed Oct 16, 2020
2 parents d12599f + 54712e4 commit 12bb79c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/Middleware/ConvertIcal.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class ConvertIcal {
const format = request.input('format')

if (format === 'icalendar') {
const cal = ical()
const cal = ical({ name: 'Calendz - Cours', timezone: 'Europe/Paris' })

const events = findValuesHelper(response._lazyBody, 'date', [])

events.forEach(event => {
cal.createEvent({
start: moment(event.date + ' ' + event.start, 'DD/MM/YYYY hh:mm').tz('Europe/Paris').toDate(),
end: moment(event.date + ' ' + event.end, 'DD/MM/YYYY hh:mm').tz('Europe/Paris').toDate(),
start: moment.tz(event.date + ' ' + event.start, 'DD/MM/YYYY hh:mm', 'Europe/Paris'),
end: moment.tz(event.date + ' ' + event.end, 'DD/MM/YYYY hh:mm', 'Europe/Paris'),
summary: event.subject,
description: event.professor,
location: event.room
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "Calendz",
"license": "ISC",
"private": true,
"version": "2.1.1",
"version": "2.1.2",
"adonis-version": "4.1.0",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 12bb79c

Please sign in to comment.