From 9817f4053d330df9e4ab73e141289cfff0d4c461 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sun, 25 Jan 2015 23:27:34 -0500 Subject: [PATCH] Move common date into var --- code.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code.go b/code.go index 6b34f9d..b6be92f 100644 --- a/code.go +++ b/code.go @@ -78,9 +78,9 @@ func generate(users map[string]User) { // Extra page data host, _ := os.Hostname() - curTime := time.Now() - updatedReadable := curTime.UTC().Format(time.RFC1123) - updated := curTime.UTC().Format(time.RFC3339) + curTime := time.Now().UTC() + updatedReadable := curTime.Format(time.RFC1123) + updated := curTime.Format(time.RFC3339) // Generate the page page := &Page{Host: host, UpdatedForHumans: updatedReadable, Updated: updated, Users: users}