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

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")
break
case "forever":
expiryTime = now.Add(time.Hour * 24 * (365 * 20)).Format("2006-01-02 15:04:05")
break
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
}