Skip to content

Commit 0cdb084

Browse files
committed
refactor: add Mexico City time zone
1 parent 7544f3f commit 0cdb084

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

logger_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from loguru import logger
44
from datetime import datetime
55
import os
6-
6+
import pytz
77

88
log_dir = Path("logs")
99
log_dir.mkdir(exist_ok=True)
1010

11-
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
11+
timestamp = datetime.now(pytz.timezone('America/Mexico_City')).strftime("%Y%m%d_%H%M%S")
1212
log_filename = f"murray_{timestamp}.log"
1313

1414

0 commit comments

Comments
 (0)