1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 13:27:20 +08:00

Add: Timezone aware

- Fix mat withdraw on slow device
This commit is contained in:
LmeSzinc
2020-06-01 02:01:04 +08:00
parent aa12392a28
commit 2609b4a70d
4 changed files with 44 additions and 9 deletions

View File

@@ -107,8 +107,7 @@ class CampaignRun(CampaignUI, Reward, LoginHandler):
Returns:
bool: If triggered a restart condition.
"""
now = datetime.now()
if now.date() != self.start_time.date():
if self.config.get_server_last_update(since=(0,)) > self.start_time:
logger.hr('Triggered restart new day')
return True
if not self.campaign.config.IGNORE_LOW_EMOTION_WARN: