Time Zone Safety
Enforces robust time zone management to prevent data inconsistencies and production errors caused by system-dependent time calls.
The Time Zone Safety skill provides a comprehensive framework for avoiding common pitfalls associated with server-side time handling. It identifies and corrects 'naked' time calls (like LocalDate.now() or new Date()) that often lead to statistical errors and data drift when code is deployed across different environments, such as a local machine in Asia/Shanghai vs. a Docker container in UTC. By enforcing project-level business time zone constants and providing language-specific implementation patterns for Java, Go, Python, and JavaScript, it ensures that period calculations, database storage, and cross-timezone comparisons remain accurate and reproducible regardless of host system settings.