Proper logging

This commit is contained in:
Ben Sarmiento
2023-10-20 01:38:05 +02:00
parent 1117e777ff
commit 464f522fea
5 changed files with 46 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ import (
func convertRFC3339toRFC1123(input string) string {
t, err := time.Parse(time.RFC3339, input)
if err != nil {
log.Println("Error:", err)
log.Println("Conversion error", err)
return ""
}
return t.Format("Mon, 02 Jan 2006 15:04:05 GMT")