summaryrefslogtreecommitdiff
path: root/forms.go
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-04-18 20:30:08 +0200
committerJan Dittberner <jan@dittberner.info>2017-04-22 00:12:38 +0200
commitcc0f5c0b7b931440704bc31a858d52ae92585616 (patch)
tree970642e2f5d69ec9213084cc938efdec8bd07673 /forms.go
parentbcfbad42b66aa29f85b283dc9aed362d3ff97f84 (diff)
downloadcacert-boardvoting-cc0f5c0b7b931440704bc31a858d52ae92585616.tar.gz
cacert-boardvoting-cc0f5c0b7b931440704bc31a858d52ae92585616.tar.xz
cacert-boardvoting-cc0f5c0b7b931440704bc31a858d52ae92585616.zip
Implement motion creation mail template
Diffstat (limited to 'forms.go')
-rw-r--r--forms.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/forms.go b/forms.go
index d5359ff..f3cd942 100644
--- a/forms.go
+++ b/forms.go
@@ -47,8 +47,10 @@ func (f *NewDecisionForm) Validate() (bool, *Decision) {
f.Errors["Due"] = "Please choose a valid due date"
} else {
year, month, day := time.Now().UTC().Add(dueDuration).Date()
- data.Due = time.Date(year, month, day, 23,59,59,0, time.UTC)
+ data.Due = time.Date(year, month, day, 23, 59, 59, 0, time.UTC)
}
+ data.Proposed = time.Now().UTC()
+
return len(f.Errors) == 0, data
}