-
-
Notifications
You must be signed in to change notification settings - Fork 962
Open
Description
Provide environment information
Trigger v4.3.1
Describe the bug
The Trigger logger reformats date-like strings in payloads, even when they are explicitly formatted strings that should remain unchanged.
When logging a payload containing a formatted date string like "Tuesday, January 6, 2026 10:05 AM", the logger converts it to an ISO-like format ("2026-01-06 10:04:00"), losing the original formatting.
Expected: the logger should preserve string values as-is, especially when they're already formatted date strings.
Reproduction repo
n/a
To reproduce
Create a payload object with a formatted date string:
const schedule = {
"day": 1,
"isValid": true,
"sendTimeCST": "Tuesday, January 6, 2026 10:05 AM",
"sendTimeUTC": "2026-01-06 16:05:11.132000000"
};
Log the payload using the Trigger logger:
logger.info("Schedule", { schedule });
Check the logged output, sendTimeCST will be reformatted.
Additional information
The issue can be bypassed by prefixing the string (e.g., "Date: Tuesday, January 6, 2026 10:05 AM")
Metadata
Metadata
Assignees
Labels
No labels