aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/apoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 36851c3..56028ca 100644
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -396,7 +396,7 @@ apoint_sec2str (struct apoint *o, int type, long day, char *start, char *end)
struct tm *lt;
time_t t;
- if (o->start < day && type == APPT)
+ if (o->start < day)
(void)strncpy (start, "..:..", 6);
else
{
@@ -404,7 +404,7 @@ apoint_sec2str (struct apoint *o, int type, long day, char *start, char *end)
lt = localtime (&t);
(void)snprintf (start, HRMIN_SIZE, "%02u:%02u", lt->tm_hour, lt->tm_min);
}
- if (o->start + o->dur > day + DAYINSEC && type == APPT)
+ if (o->start + o->dur > day + DAYINSEC)
(void)strncpy (end, "..:..", 6);
else
{