From a662f5884300e216bf7024afb9968e94263abb0c Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Mon, 16 Sep 2024 07:14:15 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/更新文件名.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/py/更新文件名.py b/py/更新文件名.py index 35c1f66..5275455 100644 --- a/py/更新文件名.py +++ b/py/更新文件名.py @@ -20,8 +20,7 @@ def delete_nonstandard_files(): print(f"Deleted {old_filename}") def rename_standard_files(): - # 获取当前日期时间 - now = datetime.datetime.now() + now = datetime.datetime.utcnow() + datetime.timedelta(hours=8) current_date = now.strftime("%m%d") # 获取当前目录下的所有文件