adds unix timestamp placeholder

This commit is contained in:
bananenmannfrau
2017-07-05 21:43:54 +02:00
parent 56b3ea876b
commit f6a96227c4
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -287,6 +287,8 @@ func (r *replacer) getSubstitution(key string) string {
return now().Format(timeFormat)
case "{when_iso}":
return now().UTC().Format(timeFormatISOUTC)
case "{when_unix}":
return strconv.FormatInt(now().Unix(), 10)
case "{file}":
_, file := path.Split(r.request.URL.Path)
return file