Try 20 years for 'forever expiry'

This commit is contained in:
Eliot Whalan 2016-06-25 09:02:31 +10:00
parent 5603204373
commit 849b081fb8
1 changed files with 5 additions and 1 deletions

View File

@ -134,8 +134,12 @@ func save(raw string, lang string, title string, expiry string) []string {
expiryTime = now.Add(time.Hour * 24 * 365).Format("2006-01-02 15:04:05") expiryTime = now.Add(time.Hour * 24 * 365).Format("2006-01-02 15:04:05")
break break
case "forever":
expiryTime = now.Add(time.Hour * 24 * (365 * 20)).Format("2006-01-02 15:04:05")
break
default: default:
expiryTime = now.Add(((time.Hour * 24) * 365) * 200).Format("2006-01-02 15:04:05") expiryTime = now.Add(time.Hour * 24 * (365 * 20)).Format("2006-01-02 15:04:05")
break break
} }