Params map has string as key

Related to issue #540 and commit 3c22ca7c84456b19f2a017719b1533902594e672
This commit is contained in:
bep 2014-11-04 17:43:14 +01:00 committed by spf13
parent e127a5cb7d
commit fdae09070b

View file

@ -88,11 +88,10 @@ func getDateFormat() string {
if params == nil {
return time.RFC3339
}
parms := params.(map[interface{}]interface{})
parms := params.(map[string]interface{})
layout := parms["DateFormat"]
if layout == nil || layout == "" {
return time.RFC3339
}
return layout.(string)
}