A2UI icon indicating copy to clipboard operation
A2UI copied to clipboard

Fix datetime input month formatting in Lit and Angular renderers

Open RobinsonBeato opened this issue 1 week ago • 0 comments

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.

RobinsonBeato avatar Dec 22 '25 09:12 RobinsonBeato