*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Wed, 25 Sep 2002 21:48:16 +0000 (21:48 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 25 Sep 2002 21:48:16 +0000 (21:48 +0000)
webcit/calendar_view.c

index cb521cf0d334fdfc293722ab4ff5a017ba0ed0cc..b6bff018dca64f4feb9649c4380ab9d7a4a4e367 100644 (file)
@@ -95,21 +95,26 @@ void calendar_month_view(int year, int month, int day) {
        starting_tm.tm_mon = month;
        starting_tm.tm_mday = day;
        thetime = mktime(&starting_tm);
+       lprintf(9, "Starting at %s", asctime(localtime(&thetime)));
 
        tm = &starting_tm;
        while (tm->tm_mday != 1) {
                thetime = thetime - (time_t)86400;      /* go back 24 hours */
+               lprintf(9, "Backing off to %s", asctime(localtime(&thetime)));
                tm = localtime(&thetime);
        }
 
        /* Determine previous and next months ... for links */
        previous_month = thetime - (time_t)864000L;     /* back 10 days */
        next_month = thetime + (time_t)(31L * 86400L);  /* ahead 31 days */
+       lprintf(9, "previous month is %s", asctime(localtime(&previous_month)));
+       lprintf(9, "next month is %s", asctime(localtime(&next_month)));
 
        /* Now back up until we're on a Sunday */
        tm = localtime(&thetime);
        while (tm->tm_wday != 0) {
                thetime = thetime - (time_t)86400;      /* go back 24 hours */
+               lprintf(9, "Backing off to %s", asctime(localtime(&thetime)));
                tm = localtime(&thetime);
        }