aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/http.go
diff options
context:
space:
mode:
authorTeddy Wing2017-06-03 17:35:24 +0200
committerTeddy Wing2017-06-03 17:35:24 +0200
commit80c8fa343a3d98c0601545ef9b3df743c6b6b901 (patch)
tree3f794accf3624808462c8af2f0f7f1c04d05714e /timetask/http.go
parent47ec5ffeea72fff2019636be2c97ee36fcd176a6 (diff)
parent81791bbf4291e28691ed2cfaaad357613c915174 (diff)
downloadtimetasker-80c8fa343a3d98c0601545ef9b3df743c6b6b901.tar.bz2
Merge branch 'command-line-arguments' into timetasker-daily
Diffstat (limited to 'timetask/http.go')
-rw-r--r--timetask/http.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/timetask/http.go b/timetask/http.go
index 6e73276..f236665 100644
--- a/timetask/http.go
+++ b/timetask/http.go
@@ -5,6 +5,7 @@ import (
"net/http/cookiejar"
"net/url"
"strconv"
+ "strings"
"golang.org/x/net/publicsuffix"
)
@@ -97,9 +98,11 @@ func buildSubmissionParams(time_entry TimeEntry) url.Values {
time_entry.Date.Format("02/01/06"), // day/month/year
)
+ time_str := strconv.FormatFloat(time_entry.Time, 'f', 2, 64)
+ time_european_format := strings.Replace(time_str, ".", ",", 0)
v.Set(
"f_time0",
- strconv.Itoa(time_entry.Time),
+ time_european_format,
)
var billable string