Commit 9038cdfa authored by astaxie's avatar astaxie

Merge pull request #1343 from onealtang/oneal-dev

always use server's locale to parse date
parents dd4cbdda adca4558
......@@ -352,7 +352,7 @@ func ParseForm(form url.Values, obj interface{}) error {
if len(tags) > 1 {
format = tags[1]
}
t, err := time.Parse(format, value)
t, err := time.ParseInLocation(format, value, time.Local)
if err != nil {
return err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment