From f7ce7d7abf93719bc268e565882eba20a959cad7 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 25 Jun 2016 09:02:31 +1000 Subject: [PATCH] Try 20 years for 'forever expiry' --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4f4b372..4958586 100644 --- a/main.go +++ b/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") 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 }