This commit is contained in:
suyl
2021-07-21 10:52:08 +08:00
parent c04fc21211
commit b58a49cc82
2 changed files with 6 additions and 6 deletions

View File

@@ -17,8 +17,8 @@ func SimFlowDaySettle() (err error) {
var (
db = globals.GetDB()
now = time.Now()
monthBegin = utils.Str2Time(utils.Int2Str(now.Year()) + "-" + utils.Int2Str(int(now.Month())) + "-01 00:00:00")
monthEnd = monthBegin.AddDate(0, 1, 0).AddDate(0, 0, -1)
monthBegin = utils.Str2Time(now.Format("2006-01") + "-01 00:00:00")
monthEnd = utils.Str2Time(monthBegin.AddDate(0, 1, 0).AddDate(0, 0, -1).Format("2006-01-02") + " 23:59:59")
)
globals.SugarLogger.Debugf("SimFlowDaySettle Begin monthBegin %v, monthEnd %v", monthBegin, monthEnd)
//月末好像不用算超不超了