diff options
author | Teddy Wing | 2018-01-22 22:04:50 +0100 |
---|---|---|
committer | Teddy Wing | 2018-01-22 22:04:50 +0100 |
commit | d72ad5c7264d3b31b8cbe67bd09feaec5c4f7eed (patch) | |
tree | 53c3738e8dffa8045fc68eccb33747b696a4944a /timetask/http.go | |
parent | 97eccbcc6aa1fae18621f705729f6428ceee629a (diff) | |
download | timetasker-d72ad5c7264d3b31b8cbe67bd09feaec5c4f7eed.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/http.go')
-rw-r--r-- | timetask/http.go | 3 |
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 |