From 5603204373fb45433b45623b4c4d374effc26b62 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 25 Jun 2016 08:56:25 +1000 Subject: [PATCH] Fix up expiry math --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 03876de..4f4b372 100644 --- a/main.go +++ b/main.go @@ -135,7 +135,7 @@ func save(raw string, lang string, title string, expiry string) []string { break default: - expiryTime = now.Add(time.Hour * 24 * 365 * 200).Format("2006-01-02 15:04:05") + expiryTime = now.Add(((time.Hour * 24) * 365) * 200).Format("2006-01-02 15:04:05") break }