From 2e2f7e3ddea38b1f53461a4b18d3cd133dd457c5 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 14 Jun 2013 14:15:11 -0500 Subject: in idolocationmenuitem, assume seconds are shown in the timestamp when the time format string includes '%s', '%S', '%T', '%X', or '%c' --- src/idolocationmenuitem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/idolocationmenuitem.c b/src/idolocationmenuitem.c index 6646d12..34e5de3 100644 --- a/src/idolocationmenuitem.c +++ b/src/idolocationmenuitem.c @@ -152,9 +152,9 @@ start_timestamp_timer (IdoLocationMenuItem * self) stop_timestamp_timer (self); - timestamp_shows_seconds = fmt && (strstr(fmt,"%s") || - strstr(fmt,"%S") || - strstr(fmt,"%T")); + timestamp_shows_seconds = fmt && (strstr(fmt,"%s") || strstr(fmt,"%S") || + strstr(fmt,"%T") || strstr(fmt,"%X") || + strstr(fmt,"%c")); if (timestamp_shows_seconds) interval_sec = 1; -- cgit v1.2.3