aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorTeddy Wing2017-06-03 18:31:17 +0200
committerTeddy Wing2017-06-03 18:31:17 +0200
commit6d138ee3c53913ef63565f66fed1b79d339b3230 (patch)
tree241cd625d36526fdd94a7748c8926700173cb273 /main.go
parent570118505bc765feda76ddcdcaef3fa0d181ec6b (diff)
downloadtimetasker-6d138ee3c53913ef63565f66fed1b79d339b3230.tar.bz2
buildSubmissionParams(): Fix time string replacement bug
We ran into a bug where submitting "7" as the time spent would become "700" on the site. This was because our `n` value of 0 wasn't replacing the "." in the string. Thus "7.00" became "7.00" after the replacement. Not right. I misunderstood what that argument was doing and what the word "empty" in the documentation meant. Change the `n` value to replace all "."s in the string.
Diffstat (limited to 'main.go')
0 files changed, 0 insertions, 0 deletions