1 --- install-datebook.c.orig Wed Jan 13 23:29:31 1999
\r
2 +++ install-datebook.c Thu Jun 22 12:47:10 2000
\r
5 appointment.event = 0;
\r
7 - if (fields[0][0] == '\0') {
\r
8 + if (fields[0][0] != '\0') {
\r
10 appointment.event = 0;
\r
11 t = parsedate(fields[0]);
\r
14 appointment.begin = *localtime(&t);
\r
16 - if (fields[1][0] == '\0') {
\r
17 + if (fields[1][0] != '\0') {
\r
19 t = parsedate(fields[1]);
\r
22 Appointment_size = pack_Appointment(&appointment, Appointment_buf,
\r
23 sizeof(Appointment_buf));
\r
24 printf("desc: %s\n", appointment.description);
\r
25 + printf("date: %d/%d/%d %d:%02d\n", appointment.begin.tm_mon + 1,
\r
26 + appointment.begin.tm_mday, appointment.begin.tm_year + 1900,
\r
27 + appointment.begin.tm_hour, appointment.begin.tm_min );
\r
28 dlp_WriteRecord(sd, db, 0, 0, 0, Appointment_buf, Appointment_size, 0);
\r
29 fields[fieldno++] = cPtr;
\r