* working on formatting still
This commit is contained in:
parent
b3db70b47c
commit
d47218961e
|
|
@ -765,10 +765,13 @@ module JamRuby
|
|||
# Thursday, July 10 - 10:00pm
|
||||
# this should be in a helper
|
||||
def pretty_scheduled_start(with_timezone)
|
||||
|
||||
puts "scheduled-start #{scheduled_start} schedulduarai #{scheduled_duration}"
|
||||
if scheduled_start && scheduled_duration
|
||||
start_time = scheduled_start
|
||||
timezone_display = 'UTC'
|
||||
tz_identifier, tz_display = MusicSession.split_timezone(timezone)
|
||||
puts "tz_identifier, tz_display #{tz_identifier} #{tz_display}"
|
||||
begin
|
||||
tz = TZInfo::Timezone.get(tz_identifier)
|
||||
rescue Exception => e
|
||||
|
|
|
|||
|
|
@ -239,17 +239,8 @@
|
|||
}
|
||||
|
||||
var sessionVals = buildSessionObject(session, notationFileHtml, rsvpUsersHtml, openSlotsHtml, latencyHtml);
|
||||
|
||||
|
||||
if (session.scheduled_start) {
|
||||
// format scheduled start time
|
||||
sessionVals.scheduled_start = new Date(session.scheduled_start).toDateString() + ', ' +
|
||||
context.JK.formatUtcTime(new Date(session.scheduled_start), false);// + '-' +
|
||||
//context.JK.formatUtcTime(new Date(session.scheduled_start + session.scheduled_duration), false);
|
||||
}
|
||||
else {
|
||||
sessionVals.scheduled_start = "Date and time TBD"
|
||||
}
|
||||
sessionVals.scheduled_start = session.pretty_scheduled_start_with_timezone;
|
||||
|
||||
sessionVals.rsvp_link_display_style = showRsvpLink ? "block" : "none";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue