Automatically detect timezone offset when --time-offset is not provided #124

This commit is contained in:
KnugiHK
2024-12-08 20:57:38 +08:00
parent 82d2485778
commit a8bac8837e
3 changed files with 6 additions and 5 deletions

View File

@@ -23,6 +23,7 @@ except ImportError:
MAX_SIZE = 4 * 1024 * 1024 # Default 4MB
ROW_SIZE = 0x3D0
CURRENT_TZ_OFFSET = datetime.now().astimezone().utcoffset().seconds / 3600
def convert_time_unit(time_second: int):