Mercurial > libpst
diff src/lspst.c @ 199:e3a46f66332b
more changes in recurrence decoding
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 13 May 2009 11:59:55 -0700 |
parents | 7c60d6d1c681 |
children | 2f38c4ce606f |
line wrap: on
line diff
--- a/src/lspst.c Tue May 12 19:34:49 2009 -0700 +++ b/src/lspst.c Wed May 13 11:59:55 2009 -0700 @@ -108,6 +108,7 @@ printf("Journal\t%s\n", pst_rfc2426_escape(item->subject.str)); } else if (item->appointment && (item->type == PST_TYPE_APPOINTMENT)) { + char time_buffer[30]; if (!ff.type) ff.type = item->type; // Process Calendar Appointment item DEBUG_MAIN(("main: Processing Appointment Entry\n")); @@ -118,9 +119,9 @@ if (item->subject.str) printf("\tSUMMARY: %s", pst_rfc2426_escape(item->subject.str)); if (item->appointment->start) - printf("\tSTART: %s", pst_rfc2445_datetime_format(item->appointment->start)); + printf("\tSTART: %s", pst_rfc2445_datetime_format(item->appointment->start, sizeof(time_buffer), time_buffer)); if (item->appointment->end) - printf("\tEND: %s", pst_rfc2445_datetime_format(item->appointment->end)); + printf("\tEND: %s", pst_rfc2445_datetime_format(item->appointment->end, sizeof(time_buffer), time_buffer)); printf("\tALL DAY: %s", (item->appointment->all_day==1 ? "Yes" : "No")); printf("\n");