Discord's "time spend in voice chat" feature has really bad formatting. WHAT IS THIS?! "%d:%d:%02d" How did this even happen?!

Oct 31, 2025 · 12:16 PM UTC

25
36
3
1,511
Replying to @TheGingerBill
I saw the same this morning
If you work in discord I have a job for you
45
Replying to @TheGingerBill
I think an intl refactor broke this - it's fixed in canary
31
Replying to @TheGingerBill
because if you do, "%02d:%02d:%02d", android studio will complain and demand you use proper locale. they wanted to avoid that.
1
109
Replying to @TheGingerBill
They messed up formatting in the entire app actually (First one has a bug where number over 1,000 show up as NaN)
1
53
Replying to @TheGingerBill
Wait just one second(s)!
1
6
Replying to @TheGingerBill
I feel like starting a blog for software on the theme "come on, you can do better than this!" But I think there would be way too much material
8
Replying to @TheGingerBill
They might have utilized the "left-pad" npm package to pad zeroes, but the last time everyone used that, half of the Internet ended up with broken builds. So they just stopped trying and left the know-how of how to pad strings in the deep internals of an obscure npm package.
3
3
Replying to @TheGingerBill
I read this as 2 days, 3 hours, and 3 minutes and I just assume they never expected to use days, so they didn't actually implement it
3
Replying to @TheGingerBill
Lol I have this as well in some software I wrote using C++ and SYSTEMTIME from the ms docs, I use it like hour:minute:second but it displays like that too and pisses me off
2
Replying to @TheGingerBill
here's how this happens const minutes = seconds/60 % 60 const hours = seconds/60*60 % 60 `${hours}:${minutes}:${seconds}`
2
2
Replying to @TheGingerBill
If it said "2:3:3" you could at least respect the commitment to the bit NO PUN INTENDED BOOM GOTTEM
2
Replying to @TheGingerBill
There were mods that did this properly since at least five years ago if not longer. How hard to write is a fucking timer
2
Replying to @TheGingerBill
If you do this you save two characters 😂
Replying to @TheGingerBill
format strings are overrated anyway
Replying to @TheGingerBill
If I can recall, days ago, the indicator shows up like xx:xx:xx. The minute is properly formatted with %02d
Replying to @TheGingerBill
bro i stg it wasn't like that like a week ago they changed it to be that wtf
Replying to @TheGingerBill
noticed it yesterday kinda funny 😂 and it sometimes just randomly resets
Replying to @TheGingerBill
noticed this happening in game activities too
Replying to @TheGingerBill
it wasnt like this the other day i swear? It had the 0#:0#:0# a couple days ago
Replying to @TheGingerBill
imagine if it was 2:3:3, discord would lose whole userbase now
Replying to @TheGingerBill
The first two represent a slice. Of your time.
Replying to @TheGingerBill
"%d:%02d:%02d" would be the correct one
Replying to @TheGingerBill
I get a good laugh seeing that format string. Thank you
Replying to @TheGingerBill
It saves space, it's an optimization, you just wouldn't understand
Replying to @TheGingerBill
it was fine before how did they fuck it up