mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-05 01:31:49 -07:00
fixes
This commit is contained in:
6
.github/skills/code-standards/SKILL.md
vendored
6
.github/skills/code-standards/SKILL.md
vendored
@@ -50,9 +50,9 @@ timestamp = timeNowUTC()
|
|||||||
This is the ONLY function that calls datetime.datetime.now() in the entire codebase.
|
This is the ONLY function that calls datetime.datetime.now() in the entire codebase.
|
||||||
|
|
||||||
⚠️ CRITICAL: ALL database timestamps MUST be stored in UTC
|
⚠️ CRITICAL: ALL database timestamps MUST be stored in UTC
|
||||||
# This is the SINGLE SOURCE OF TRUTH for current time in NetAlertX
|
This is the SINGLE SOURCE OF TRUTH for current time in NetAlertX
|
||||||
# Use timeNowUTC() for DB writes (returns UTC string by default)
|
Use timeNowUTC() for DB writes (returns UTC string by default)
|
||||||
# Use timeNowUTC(as_string=False) for datetime operations (scheduling, comparisons, logging)
|
Use timeNowUTC(as_string=False) for datetime operations (scheduling, comparisons, logging)
|
||||||
|
|
||||||
## String Sanitization
|
## String Sanitization
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user