Skip to content

Quarter scale format token %q not rendered (shows literal Q%q) #29

@mattrucker

Description

@mattrucker

Bug Report

Note: This issue was identified during AI-assisted development and should be human-reviewed for accuracy.

Environment

  • Package: @svar-ui/svelte-gantt@2.6.0
  • Framework: SvelteKit (Svelte 5)
  • Runtime: Bun 1.3.11

Description

When using quarter scale configuration, the %q strftime format token is not processed. The header displays literal Q%q instead of the expected Q1, Q2, etc.

Minimal Reproduction

// Scale configuration
const scales = [
  { unit: "year", step: 1, format: "%Y" },
  { unit: "quarter", step: 1, format: "Q%q" }
];

Expected Behavior

Quarter headers should display: Q1, Q2, Q3, Q4

Actual Behavior

Quarter headers display: Q%q, Q%q, Q%q, Q%q (literal text, token not replaced)

Screenshot

The %Y token on the year row works correctly (shows 2026, 2027). Only %q is not processed.

Notes

The %q token may not be part of the standard strftime specification. If a different token or approach is needed for quarter labels, documentation guidance would be helpful.

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