1 || "border-bottom"
- }`}
+ className={`row talk-card align-items-center p-2 pb-2 ${size > 1 || "border-bottom"
+ }`}
style={{ marginBottom: "0.8rem" }}
>
@@ -284,6 +283,7 @@ function ScheduleTalk({ title, speakers, track, size, proposalLink, isLive }) {
function ScheduleAccordion({
date,
currentSchedule,
+ defaultScheduleIndex,
id,
handleTabClick,
isLive,
@@ -296,58 +296,59 @@ function ScheduleAccordion({
const handleCloseSpeakerModal = () => {
setSelectedSpeakerId(null);
};
+
return (
-
handleTabClick(id)}>
- {date}
-
- {currentSchedule.schedule.map((scheduleItem, scheduleIdx) => {
- const isLive = isEventLive(scheduleItem.time);
- return scheduleItem.talks.map((talk, idx) => {
- return (
-
- {talk.title.indexOf("Keynote") > -1 && (
- Keynote
- )}
-
-
- {scheduleItem.time}
- {isLive && (
-
-
- Live
-
-
-
- )}
-
-
- {talk.proposalLink ? (
-
- {talk.title}
-
- ) : (
- <>{talk.title}>
- )}
-
- {talk.track && (
-
-
- {getTrackRoom(talk.track)}
-
-
+ handleTabClick(id)}>
+ {date}
+
+ {currentSchedule.schedule.map((scheduleItem, scheduleIdx) => {
+ const isLive = (defaultScheduleIndex == id && isEventLive(scheduleItem.time));
+ return scheduleItem.talks.map((talk, idx) => {
+ return (
+
+ {talk.title.indexOf("Keynote") > -1 && (
+ Keynote
+ )}
+
+
+ {scheduleItem.time}
+ {isLive && (
+
+
+ Live
+
+
+
+ )}
+
+
+ {talk.proposalLink ? (
+
+ {talk.title}
+
+ ) : (
+ <>{talk.title}>
)}
+
+ {talk.track && (
+
+
+ {getTrackRoom(talk.track)}
+
+
+ )}
{/* {talk.speakersPlaceHolder ? (
By {talk.speakersPlaceHolder}
diff --git a/lib/util.js b/lib/util.js
index 019aa84..58aaae9 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -1,14 +1,13 @@
import moment from 'moment-timezone';
function isTimeBetween(startTimeStr, endTimeStr) {
- const currentTime = moment().tz('Asia/Kolkata');
-
- const startTime = moment(startTimeStr, 'hA').tz('Asia/Kolkata');
- const endTime = moment(endTimeStr, 'hA').tz('Asia/Kolkata');
+ const currentTime = moment();
+ const startTime = moment(startTimeStr, 'hh:mm AA');
+ const endTime = moment(endTimeStr, 'hh:mm AA');
return currentTime.isBetween(startTime, endTime);
}
module.exports = {
isTimeBetween,
-};
\ No newline at end of file
+};