From 1fc85d49bd0207625acd73c2b6a479fd6e099503 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 7 Apr 2019 21:49:24 +0800 Subject: [PATCH] gtime updates; README updates --- README.MD | 18 ++++++++++-------- g/os/gtime/gtime.go | 4 ---- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.MD b/README.MD index 208499e62..f83e8035e 100644 --- a/README.MD +++ b/README.MD @@ -67,17 +67,19 @@ func main() { # Contributors -- [johng](https://gitee.com/johng) -- [zhaopengme](https://github.com/zhaopengme) -- [wenzi1](https://gitee.com/wenzi1) -- [zseeker](https://gitee.com/zseeker) -- [ymrjqyy](https://gitee.com/ymrjqyy) - [chenyang351](https://github.com/chenyang351) -- [wxkj](https://gitee.com/wxkj) -- [wxkj001](https://github.com/wxkj001) -- [zhangjinfu](https://gitee.com/zhangjinfu) - [garfieldkwong](https://gitee.com/garfieldkwong) +- [hailaz](https://gitee.com/hailaz) +- [johng](https://gitee.com/johng) +- [pibigstar](https://github.com/pibigstar) - [qq1054000800](https://gitee.com/qq1054000800) +- [wenzi1](https://gitee.com/wenzi1) +- [wxkj001](https://github.com/wxkj001) +- [ymrjqyy](https://gitee.com/ymrjqyy) +- [youyixiao](https://github.com/youyixiao) +- [zhangjinfu](https://gitee.com/zhangjinfu) +- [zhaopengme](https://github.com/zhaopengme) +- [zseeker](https://gitee.com/zseeker) # Donators diff --git a/g/os/gtime/gtime.go b/g/os/gtime/gtime.go index 03d551d81..5e45231a9 100644 --- a/g/os/gtime/gtime.go +++ b/g/os/gtime/gtime.go @@ -149,10 +149,6 @@ func parseDateStr(s string) (year, month, day int) { year, _ = strconv.Atoi(array[2]) day, _ = strconv.Atoi(array[0]) } - // 年是否为缩写,如果是,那么需要补上前缀 - if year < 100 { - year = int(time.Now().Year()/100)*100 + year - } return }