diff options
author | Teddy Wing | 2017-06-03 17:35:24 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-03 17:35:24 +0200 |
commit | 80c8fa343a3d98c0601545ef9b3df743c6b6b901 (patch) | |
tree | 3f794accf3624808462c8af2f0f7f1c04d05714e /timetask/http.go | |
parent | 47ec5ffeea72fff2019636be2c97ee36fcd176a6 (diff) | |
parent | 81791bbf4291e28691ed2cfaaad357613c915174 (diff) | |
download | timetasker-80c8fa343a3d98c0601545ef9b3df743c6b6b901.tar.bz2 |
Merge branch 'command-line-arguments' into timetasker-daily
Diffstat (limited to 'timetask/http.go')
-rw-r--r-- | timetask/http.go | 5 |
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 |