Skip to content

Dates in excludes are ignored in Gantt diagrams when dateFormat is 'YYYY-MM-DD HH:mm:ss' #6730

@xh-w

Description

@xh-w

Description

In Gantt diagrams, when dateFormat is 'YYYY-MM-DD HH:mm:ss', excluding specific dates are ignored.

Steps to reproduce

a Gantt diagram code

gantt
    dateFormat YYYY-MM-DD HH:mm:ss
    excludes 2025-07-07
    section Section
        A task          :a1, 2025-07-04 20:30:30, 2025-07-08 10:30:30
        Another task    :after a1, 20h
Loading
Image

Screenshots

No response

Code Sample


Setup

  • Mermaid version: 11.7.0
  • Browser and Version: Firefox 128.12.0esr

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions