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:
parent
e7baccc156
commit
9817f4053d
6
code.go
6
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}
|
||||
|
Loading…
Reference in New Issue
Block a user