@@ -12,11 +12,11 @@ import Foundation
1212
1313class ComplicationController : NSObject , CLKComplicationDataSource {
1414
15- fileprivate let conferenceStartDate = Date . date ( year: 2017 , month: 9 , day: 5 , hour: 0 , minute: 0 , second: 0 )
15+ fileprivate let conferenceStartDate = Date . date ( year: 2017 , month: 11 , day: 18 , hour: 0 , minute: 0 , second: 0 )
1616
1717 fileprivate let sessionBlocks : [ SessionBlock ] = {
1818 let days = ConferenceDay . all
19- let conferenceDays = [ days [ 0 ] , days [ 1 ] ]
19+ let conferenceDays = [ days [ 0 ] ]
2020 let sessionBlocks = conferenceDays. flatMap { $0. sessionBlocks }
2121 return sessionBlocks
2222 } ( )
@@ -58,8 +58,8 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
5858
5959 if currentDate < conferenceStartDate {
6060 let tmpl = CLKComplicationTemplateModularLargeStandardBody ( )
61- tmpl. headerTextProvider = CLKSimpleTextProvider ( text: " try! NYC " )
62- tmpl. body1TextProvider = CLKSimpleTextProvider ( text: " 🗽 🐥🎉" )
61+ tmpl. headerTextProvider = CLKSimpleTextProvider ( text: " try! India " )
62+ tmpl. body1TextProvider = CLKSimpleTextProvider ( text: " 🇮🇳 🐥🎉" )
6363 let startDate = firstSession. startTime
6464 let style = CLKRelativeDateStyle . natural
6565 let units : NSCalendar . Unit = [ . day, . hour, . minute]
@@ -70,8 +70,8 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
7070 } else if currentDate > lastSession. endTime as Date {
7171 let tmpl = CLKComplicationTemplateModularLargeStandardBody ( )
7272
73- tmpl. headerTextProvider = CLKSimpleTextProvider ( text: " try! NYC " )
74- tmpl. body1TextProvider = CLKSimpleTextProvider ( text: " 🗽 🐥🎉" )
73+ tmpl. headerTextProvider = CLKSimpleTextProvider ( text: " try! India " )
74+ tmpl. body1TextProvider = CLKSimpleTextProvider ( text: " 🇮🇳 🐥🎉" )
7575 tmpl. body2TextProvider = CLKTimeIntervalTextProvider ( start: firstSession. startTime as Date , end: lastSession. endTime as Date )
7676 let timelineEntry = CLKComplicationTimelineEntry ( date: currentDate, complicationTemplate: tmpl)
7777 handler ( timelineEntry)
@@ -125,7 +125,7 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
125125private extension Date {
126126 func toUTC( ) -> Date {
127127 // Conference timelines are defined in EST
128- let jst = TimeZone ( abbreviation: " EST " ) !
128+ let jst = TimeZone ( abbreviation: " IST " ) !
129129 let calendar = Calendar . current
130130 guard let currentDate = calendar. date ( byAdding: . second, value:
131131 - jst. secondsFromGMT ( ) , to: self ) else {
0 commit comments