mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 02:48:23 +08:00
Fix: guild operations should start based on server time instead of local time (#4548)
This commit is contained in:
@@ -603,6 +603,17 @@ def get_server_weekday():
|
||||
return result
|
||||
|
||||
|
||||
def get_server_monthday():
|
||||
"""
|
||||
Returns:
|
||||
int: The server's current day of the month
|
||||
"""
|
||||
diff = server_time_offset()
|
||||
server_now = datetime.now() - diff
|
||||
result = server_now.day
|
||||
return result
|
||||
|
||||
|
||||
def random_id(length=32):
|
||||
"""
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user