Skip to content

Conversation

@RobinsonBeato
Copy link

Summary

Fixes an off-by-one error in datetime input renderers (Lit and Angular).
In JavaScript, Date.getMonth() is zero-based (January = 0), which caused
rendered month values to be incorrect.

Changes

  • Normalize month formatting by using getMonth() + 1.
  • Apply the fix consistently across Lit and Angular renderers.

Impact

Prevents incorrect month rendering in datetime inputs, avoiding
user-facing data errors and improving UX consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant