github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/gregor/common.go (about) 1 package gregor 2 3 import ( 4 "net/url" 5 ) 6 7 func URLAddParseTime(s string) (string, error) { 8 dsn, err := url.Parse(s) 9 if err != nil { 10 return "", err 11 } 12 13 query := dsn.Query() 14 query.Set("parseTime", "true") 15 dsn.RawQuery = query.Encode() 16 17 return dsn.String(), nil 18 }