Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Incorrect session length number format in C# Examples #28

Open
taylorjp opened this issue Feb 16, 2018 · 0 comments
Open

Incorrect session length number format in C# Examples #28

taylorjp opened this issue Feb 16, 2018 · 0 comments

Comments

@taylorjp
Copy link

On line 90, when formatting the session length, the code uses the format "{0:N0}" which works fine for that example because the session length is 15 minutes (or 900 seconds). As soon as you get above a 999 second session length, however, that format adds commas to the result (ie 1,000), which breaks the embed. A better format would be "{0:D}" which would not add the commas.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant