diff --git a/ChangeLog b/ChangeLog index e3ae6e4..a492b17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-05-31 +- fixed issue 71 : time format %T %r + 2009-05-31 - fixed issue 86 : padding bug diff --git a/src/clock/clock.c b/src/clock/clock.c index 288ed94..79104c0 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -58,8 +58,10 @@ void init_clock() if (!clock->area.on_screen) continue; - if (strchr(time1_format, 'S') == NULL) time_precision = 60; - else time_precision = 1; + if (strchr(time1_format, 'S')) time_precision = 1; + else if (strchr(time1_format, 'T')) time_precision = 1; + else if (strchr(time1_format, 'r')) time_precision = 1; + else time_precision = 60; // update clock to force update (-time_precision) struct timeval stv; diff --git a/src/tint2 b/src/tint2 index 94f1e1f..9e81143 100755 Binary files a/src/tint2 and b/src/tint2 differ