Skip to content

Message|MessageInterface -> date() function returns inconsistent 12-hour and 24-hour hour formats #158

@PileJL

Description

@PileJL

Environment

  • PHP version: 8.5.6
  • ImapEngine version: v1.24.0
  • IMAP server: Outlook and Microsoft Graph

Description
The Message|MessageInterface -> date() function is returning inconsistent hour formats. For emails sent at the exact same hour period (e.g., 5 PM), the output randomly mixes 12-hour and 24-hour representations.

For example, given the format 2026-03-05 17:24:20:

  • Some emails sent at 5 PM return 17 for the hour.
  • Other emails sent at 5 PM return 5 for the hour.

This makes parsing the date accurately impossible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions