Skip to content

Commit

Permalink
.ics modified for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
srivenkatharsha committed Mar 13, 2023
1 parent 8b04c13 commit 4febb01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/exam_schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ let exam_schedule_sync = () => {
console.log(start_time,end_time)

try{header += "BEGIN:VEVENT\n"+
"UID:"+ `${year1}${month1}${day1}T${hour1}${minute1}${second1}Z-${exam.course_code[i]}@vitap.ac.in\n`+
"DTSTAMP;TZID=Asia/Kolkata:"+ `${year1}${month1}${day1}T${hour1}${minute1}${second1}Z\n`+
"DTSTART;TZID=Asia/Kolkata:"+ `${tmp[2]}${map[tmp[1]]}${tmp[0]}T`+ `${start_time.split(":")[0]}`+`${start_time.split(":")[1]}00Z\n`+
"DTEND;TZID=Asia/Kolkata:"+ `${tmp[2]}${map[tmp[1]]}${tmp[0]}T`+ `${end_time.split(":")[0]}`+`${end_time.split(":")[1]}00Z\n`+
"UID:"+ `${year1}${month1}${day1}T${hour1}${minute1}${second1}-${exam.course_code[i]}@vitap.ac.in\n`+
"DTSTAMP;TZID=Asia/Kolkata:"+ `${year1}${month1}${day1}T${hour1}${minute1}${second1}\n`+
"DTSTART;TZID=Asia/Kolkata:"+ `${tmp[2]}${map[tmp[1]]}${tmp[0]}T`+ `${start_time.split(":")[0]}`+`${start_time.split(":")[1]}00\n`+
"DTEND;TZID=Asia/Kolkata:"+ `${tmp[2]}${map[tmp[1]]}${tmp[0]}T`+ `${end_time.split(":")[0]}`+`${end_time.split(":")[1]}00\n`+
"SUMMARY:"+ exam.course_code[i]+":"+exam.course_title[i]+"\n"+
"DESCRIPTION:"+"Seat Location : "+exam.seat_location[i] +";"+ " Seat Number : "+exam.seat_number[i] + "\n"+
"LOCATION:"+ exam.venue[i]+" "+exam.venue_room[i]+" " +"\n"+
Expand Down

0 comments on commit 4febb01

Please sign in to comment.