David Smart / iCal
Revision:
10:deeaec151283
Parent:
9:2c2c35511965
Child:
11:fe5586155a42
Child:
12:3dc52826343f
--- a/iCal.cpp	Thu Aug 06 11:12:48 2015 +0000
+++ b/iCal.cpp	Tue Jan 26 11:58:10 2016 +0000
@@ -113,19 +113,8 @@
         tStamp = tStamp + tzoTZIDSec;
     } else {
         tStamp = tStamp + tzoSec;
-//        if (t.tm_isdst)
-//            tStamp += 3600;
     }
     return tStamp;
-    //int tm_sec //seconds after the minute – [0, 60][@1]    (public member object)
-    //int tm_min  //minutes after the hour – [0, 59]    (public member object)
-    //int tm_hour //hours since midnight – [0, 23]    (public member object)
-    //int tm_mday //day of the month – [1, 31]    (public member object)
-    //int tm_mon  //months since January – [0, 11]    (public member object)
-    //int tm_year //years since 1900    (public member object)
-    //int tm_wday //days since Sunday – [0, 6]    (public member object)
-    //int tm_yday //days since January 1 – [0, 365]
-    //int tm_isdst
 }
 
 char * FormatCTime(time_t t)
@@ -354,7 +343,7 @@
     INFO("ParseEvent(...,'%s',%d)", pStart, tzoSec);
     if (strncmp(pStart, "DTSTART:", 8) == 0) {
         Event->Start = ParseDateStamp(pStart+8, tzoSec);
-        //INFO("  Start: %d\n", mktime(&Event->eventStart));
+        INFO("  Start: %s\n", ctime(&Event->Start));
     } else if (strncmp(pStart, "DTSTART;", 8) == 0) {
         char * p = pStart + 8;
         tzoSec = ParseTZID(p);
@@ -552,8 +541,8 @@
                 pEnd++;
             }
             // pStart now has a single null terminated line of text.
-            //if (showEvents)
-                //INFO("*** %s", pStart);
+            if (showEvents)
+                INFO("*** %s", pStart);
             switch (seeking) {
                 case idle:
                     if (strcmp(pStart, "BEGIN:VTIMEZONE") == 0)
@@ -574,7 +563,6 @@
                         Event.RepeatMonthDayRev = 0;
                         Event.RepeatMonths = 0;
                         Event.Priority = 5;     // 5 is Normal
-                        //ShowEventInfo(Event);
                     }
                     break;
                 case inTimeZone: