Pomodoro icon indicating copy to clipboard operation
Pomodoro copied to clipboard

Pad single digit numbers with zeros to a width of two

Open paultcochrane opened this issue 9 years ago • 1 comments

This change gives the time display a more standardised/common look. When using the app, I was surprised to see the seconds display go down to a single digit and the display not to be padded by a zero, as this is not the behaviour a standard digital clock has. This is the reasoning behind this commit: to reduce surprise to users.

paultcochrane avatar Mar 25 '15 20:03 paultcochrane

There is a different issue with printing time, that could be fixed here too. Negative times are computed and printed wrong. I suppose, that Math.abs should be applied directly to left variable before computation of min and sec. So the time line would be '0:01' -> '0:00' -> '-0:00' -> '-0:01' and so on.

surr avatar Apr 18 '15 14:04 surr