diff options
author | Teddy Wing | 2018-01-22 22:07:14 +0100 |
---|---|---|
committer | Teddy Wing | 2018-01-22 22:07:14 +0100 |
commit | 44ae48931227fba274a3d2fea3742947987950f0 (patch) | |
tree | 53c3738e8dffa8045fc68eccb33747b696a4944a | |
parent | b31561487edb3df5241f4999a26edbcbae6e0717 (diff) | |
parent | d72ad5c7264d3b31b8cbe67bd09feaec5c4f7eed (diff) | |
download | timetasker-44ae48931227fba274a3d2fea3742947987950f0.tar.bz2 |
Merge branch 'change-field-format-to-US-localisation'
-rw-r--r-- | timetask/http.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/timetask/http.go b/timetask/http.go index 7f5cc18..c3b48dc 100644 --- a/timetask/http.go +++ b/timetask/http.go @@ -117,14 +117,13 @@ func buildSubmissionParams(time_entry TimeEntry) url.Values { v.Set( "f_date0", - time_entry.Date.Format("02/01/06"), // day/month/year + time_entry.Date.Format("01/02/06"), // month/day/year ) 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 |