Repository navigation
Conversation
Signed-off-by: Sebastian Turner <sebastiant3484@gmail.com>
🦋 Changeset detectedLatest commit: 9a3f8b5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for ix-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
| * Index of the first time token in `format`, ignoring text inside single | ||
| * quotes, which Luxon treats as literal (e.g. `'at'`, `'um'`). | ||
| */ | ||
| function firstLuxonTimeTokenIndex(format: string): number { |
There was a problem hiding this comment.
This no longer merges. #2883 moved this file to packages/core/src/components/utils/datetime/luxon-datetime-format-masks.ts. The spec stayed in packages/core/src/components/utils/test/ and already imports ../datetime/luxon-datetime-format-masks.
Please rebase onto main and replay this change onto the new path.
| '@siemens/ix': patch | ||
| --- | ||
|
|
||
| Fix `ix-datetime-input` splitting its `format` into date and time parts when a quoted literal contains time token letters (for example `dd.MM.yyyy 'um' HH:mm` or `LL/dd/yyyy 'at' hh:mm a`). Previously the literal was cut in half, so selecting a value in the picker could commit a wrong hour. |
There was a problem hiding this comment.
Please add Fixes #2906 to this summary so the issue closes when the changeset is released (.github/instructions/code-review.instructions.md).



What is the current behavior?
getLuxonDateOnlyFormatMaskandgetLuxonTimeFormatMasksearch for the first time token with/[HhmsaSZ]/and also match letters inside quoted literals. A format likedd.MM.yyyy 'um' HH:mmis split intodd.MM.yyyy 'uandm' HH:mm, soix-datetime-inputcommits the current hour instead of the selected one when a value is picked.GitHub Issue Number: #
What is the new behavior?
'T','at','um') instead of single characters, sodd.MM.yyyy 'um' HH:mmsplits intodd.MM.yyyyandHH:mm.yyyy/LL/dd HH:mm:ssandyyyy-MM-dd'T'HH:mm:ssis unchanged.luxon-datetime-format-masks.spec.tsand a patch changeset.Checklist
pnpm --filter @siemens/ix test.spec)pnpm build --filter @siemens/ix)Help & support
Note: open PR #2883 moves this file to
utils/datetime/without changing it. Happy to rebase onto that if it lands first.Fixes #2906
Summary by CodeRabbit