Commit f9079fd5 authored by chenweijian's avatar chenweijian

东三区

parent 0ef6cd6c
......@@ -12,6 +12,9 @@ const DATE_FORMAT = "2006-01-02"
const COMPACT_MONTH_FORMAT = "200601"
const MONTH_FORMAT = "2006-01"
// 获取沙特时区
var CstZone = time.FixedZone("CST", 3*3600) // 东三
func GetZeroTime(t time.Time) time.Time {
return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location())
}
......
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