aboutsummaryrefslogtreecommitdiffstats
path: root/timetask
diff options
context:
space:
mode:
authorTeddy Wing2018-01-22 22:04:50 +0100
committerTeddy Wing2018-01-22 22:04:50 +0100
commitd72ad5c7264d3b31b8cbe67bd09feaec5c4f7eed (patch)
tree53c3738e8dffa8045fc68eccb33747b696a4944a /timetask
parent97eccbcc6aa1fae18621f705729f6428ceee629a (diff)
downloadtimetasker-change-field-format-to-US-localisation.tar.bz2
buildSubmissionParams(): Change time format to U.S.change-field-format-to-US-localisation
The TimeTask form now requires U.S. localisation for the time. This means that decimal values are no longer submitted as "4,5" for four and a half hours. Instead, it must be written "4.5".
Diffstat (limited to 'timetask')
-rw-r--r--timetask/http.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/timetask/http.go b/timetask/http.go
index 59d59a6..c3b48dc 100644
--- a/timetask/http.go
+++ b/timetask/http.go
@@ -121,10 +121,9 @@ func buildSubmissionParams(time_entry TimeEntry) url.Values {
)
time_str := strconv.FormatFloat(time_entry.Time, 'f', 2, 64)
- time_european_format := strings.Replace(time_str, ".", ",", -1)
v.Set(
"f_time0",
- time_european_format,
+ time_str,
)
var billable string