alarm-clock icon indicating copy to clipboard operation
alarm-clock copied to clipboard

Don't display seconds in countdown label

Open joh opened this issue 8 years ago • 1 comments

There is an option to show the countdown label. Seconds on the label could be distracting, annoying, superfluous. I suggest adding an option to change the format of countdown label to "hh:mm" (where "hh" stands for remaining hours and "mm" is remaining minutes)


Imported from Launchpad using lp2gh.

  • date created: 2015-07-16T08:53:07Z
  • owner: harakesh557
  • the launchpad url was https://bugs.launchpad.net/bugs/1475208

joh avatar Mar 23 '17 21:03 joh

(by harakesh557) In case if someone wants this, I changed line 229 in ui.c:

tmp = g_strdup_printf("%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec);

to:

tmp = g_strdup_printf("%d:%02d", tm->tm_hour, tm->tm_min);

It corresponds to format "h:mm".

joh avatar Mar 23 '17 22:03 joh