Skip to content

bug: Logger unexpectedly formats date-like strings in payloads #2882

@isshaddad

Description

@isshaddad

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions