Jun 26 MT-0 phase
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
control/time_utils.py
|
||||
---------------------
|
||||
Mirror of `app/utils/time_utils.now_eastern()` so the control plane keeps the
|
||||
same naive-US/Eastern timestamp convention (CLAUDE.md Rule 2) WITHOUT importing
|
||||
the data-plane app package.
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
import pytz
|
||||
|
||||
EASTERN = pytz.timezone('America/New_York')
|
||||
|
||||
|
||||
def now_eastern() -> datetime:
|
||||
"""Current wall-clock time in US/Eastern as a naive datetime."""
|
||||
return datetime.now(tz=EASTERN).replace(tzinfo=None)
|
||||
Reference in New Issue
Block a user