1
0
mirror of https://github.com/thebaer/tildes.git synced 2018-07-20 07:15:21 +00:00

Move common date into var

This commit is contained in:
Matt Baer 2015-01-25 23:27:34 -05:00
parent e7baccc156
commit 9817f4053d

View File

@ -78,9 +78,9 @@ func generate(users map[string]User) {
// Extra page data // Extra page data
host, _ := os.Hostname() host, _ := os.Hostname()
curTime := time.Now() curTime := time.Now().UTC()
updatedReadable := curTime.UTC().Format(time.RFC1123) updatedReadable := curTime.Format(time.RFC1123)
updated := curTime.UTC().Format(time.RFC3339) updated := curTime.Format(time.RFC3339)
// Generate the page // Generate the page
page := &Page{Host: host, UpdatedForHumans: updatedReadable, Updated: updated, Users: users} page := &Page{Host: host, UpdatedForHumans: updatedReadable, Updated: updated, Users: users}