Explorar o código

日期格式修改

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag %!s(int64=4) %!d(string=hai) anos
pai
achega
9503103183
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      report_public_funs_utils.py

+ 2 - 2
report_public_funs_utils.py

@@ -41,7 +41,7 @@ class ReportPublicFunsUtils:
     def get_montho_day():
         now = datetime.datetime.now()
         month = now.month
-        day = now.day
+        day = now.day - 1
         return '{}月{}日'.format(month, day)
 
     @staticmethod
@@ -62,4 +62,4 @@ class ReportPublicFunsUtils:
 
 
 if __name__ == '__main__':
-    print(ReportPublicFunsUtils.get_time_range_month())
+    print(ReportPublicFunsUtils.get_montho_day())