Try 20 years for 'forever expiry'
This commit is contained in:
parent
cfc5dcf3eb
commit
f7ce7d7abf
6
main.go
6
main.go
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue