修复获取当前月份不能正常执行的问题
This commit is contained in:
parent
cf607d071f
commit
bd15885e72
@ -7,8 +7,8 @@ from dateutil.relativedelta import relativedelta
|
|||||||
|
|
||||||
def get_curr_month():
|
def get_curr_month():
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
if now.time() < time(13, 0):
|
# if now.time() < time(13, 0):
|
||||||
now -= timedelta(days=1)
|
# now -= timedelta(days=1)
|
||||||
return now.strftime("%Y-%m")
|
return now.strftime("%Y-%m")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user