From 43919b3ecad8c15b1babe92449e985e5d6e469a3 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Fri, 15 Sep 2017 13:28:39 -0400 Subject: [PATCH] Use local time instead of UTC --- attendees.go | 2 +- suggestions.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/attendees.go b/attendees.go index 55000b5..f59185a 100644 --- a/attendees.go +++ b/attendees.go @@ -183,7 +183,7 @@ func AttendeeHandler(w http.ResponseWriter, r *http.Request) { return } - today := time.Now().UTC().Truncate(time.Hour * 24) + today := time.Now().Truncate(time.Hour * 24) if r.Method == "POST" { attendee_json := r.PostFormValue("attendee") diff --git a/suggestions.go b/suggestions.go index 9708e1f..1dbad62 100644 --- a/suggestions.go +++ b/suggestions.go @@ -204,7 +204,7 @@ func SuggestionHandler(w http.ResponseWriter, r *http.Request) { return } - today := time.Now().UTC().Truncate(time.Hour * 24) + today := time.Now().Truncate(time.Hour * 24) if r.Method == "POST" { suggestion_json := r.PostFormValue("suggestion")