From 122a41ad2e519aef7e42f2e552f0b99eb4e84ca7 Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Tue, 17 Aug 2021 23:30:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8rm=20pytz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/py/mimotion.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Scripts/py/mimotion.py b/Scripts/py/mimotion.py index 1f021af..0a8823c 100644 --- a/Scripts/py/mimotion.py +++ b/Scripts/py/mimotion.py @@ -19,19 +19,11 @@ tg [TG: tg_bot_token@user_id] qwx [企业微信: touser-corpid-corpsecret-agentid 其中 touser 可填 @all,agenid 不填默认为 1000002] pp [PushPlus: push_plus_token] off [关闭推送] ------------- -依赖模块说明 -pip install pytz / pip3 install pytz ''' -from datetime import datetime -import pytz import requests,time,re,json,random,os - -shanghai = pytz.timezone('Asia/Shanghai') -shanghai_time = datetime.now(tz=shanghai) -now = shanghai_time.strftime("%Y-%m-%d %H:%M:%S") +now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) headers = { 'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 9; MI 6 MIUI/20.6.18)' }