diff options
author | Teddy Wing | 2018-01-22 22:01:43 +0100 |
---|---|---|
committer | Teddy Wing | 2018-01-22 22:03:41 +0100 |
commit | 97eccbcc6aa1fae18621f705729f6428ceee629a (patch) | |
tree | 861e344b390dd9b9361097c9b216afebbb487be6 | |
parent | b31561487edb3df5241f4999a26edbcbae6e0717 (diff) | |
download | timetasker-97eccbcc6aa1fae18621f705729f6428ceee629a.tar.bz2 |
buildSubmissionParams(): Change date format to U.S.
The TimeTask form now requires U.S. instead of European date
localisation. This swaps the date and month fields so that the month
appears first.
-rw-r--r-- | timetask/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/timetask/http.go b/timetask/http.go index 7f5cc18..59d59a6 100644 --- a/timetask/http.go +++ b/timetask/http.go @@ -117,7 +117,7 @@ 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) |