Try 20 years for 'forever expiry'

This commit is contained in:
Eliot Whalan 2016-06-25 09:02:31 +10:00
parent cfc5dcf3eb
commit f7ce7d7abf
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
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
} }