Bug in count to end of hour?

See screenshot. You do the math. Something isn’t correct. ;D
BUT!!! This is with mm:ss. With (h)h:mm:ss it goes OK, but…in fact mm:ss should work as well.

Bug? Hidden feature?


MairList.png

Sorry, don’t get the point. Which time display are you referring to, and what should it display instead?

Sorry, I ment the clock and the countdown timer to the end of the hour, in the black box.

It should display 5:40 and not 12:40.

Try to left click onthere, it will varry in display.

Unfortunately, it didn’t. Check the image. Local time is 13:07, but only adding a “h” (or in the screenshot as correct format “hh:”) it is solved. I have the problem with every font I use.

Has the “%s” something to do with it?


Use nn for the minutes. So the correct format should be “nn:ss”, not “mm:ss”.

“mm” is “month number as two digits” according to this list:

http://www.delphibasics.co.uk/RTL.asp?Name=FormatDateTime

(There are 0 days left until the top of the next hour, and “day 0” is December 30, 1899 in Delphi’s TDateTime representation, that’s why you get a 12 - December - for “mm”.)

I’m a bit puzzled about why hh:mm:ss works anyway. Must be some Delphi magic I’m not aware about.

[quote=“Torben, post:6, topic:9261”]Use nn for the minutes. So the correct format should be “nn:ss”, not “mm:ss”.

“mm” is “month number as two digits” according to this list:

http://www.delphibasics.co.uk/RTL.asp?Name=FormatDateTime

(There are 0 days left until the top of the next hour, and “day 0” is December 30, 1899 in Delphi’s TDateTime representation, that’s why you get a 12 - December - for “mm”.)

I’m a bit puzzled about why hh:mm:ss works anyway. Must be some Delphi magic I’m not aware about.[/quote]
Thanks for the info. Makes sense.

Keep in mind that “mm:ss” is the default value when you want to add this. Maybe change it?

No, the default value is “nn:ss”. Just double-checked.

Oops, it was. Sorry :wink: I changed it and it works.