Forráskód Böngészése

日期格式修改

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 4 éve
szülő
commit
9503103183
1 módosított fájl, 2 hozzáadás és 2 törlés
  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())